March 15th, 2011, 12:40 PM
Accessing the PHP Session ID using only Java?
Ive been wondering if this is possible for a while and have tried various things to no avail.
Has anyone achieved this before? That is, without writing any extra PHP code to return the ID.
So far ive looked into creating a separate Applet, and have experimented with the JDK 6 Scripting Framework (but that seems to just be able to access methods defined on scripts, not just anything)
Basically i dont want to touch anything on the server-side, i just want my client app to be capable of detecting the current session ID.
Any idea on a good direction to take?
March 15th, 2011, 09:23 PM
Re: Accessing the PHP Session ID using only Java?
Mmm... without a php servlet returning the id, or any other middle cap (interface, file, shared db, etc.) - I don't think so. The php sessions are saved on the php server, good luck getting the php sessions out of it.
Check this one: http://php-java-bridge.sourceforge.net/pjb/
Wanna install linux on a vacuum cleaner. Could anyone tell me which distro sucks better?
I had a nightmare last night. I was dreaming that Iím 64-bit and my blanket is 32-bit and I couldnít cover myself with it, so Iíve spent the whole night freezing. And in the morning I find that my blanket just had fallen off the bed. =S (from: bash.org.ru)
//always looking for job opportunities in AU/NZ/US/CA/Europe :P
USE [code] TAGS! Read this FAQ if you are new here. If this post was helpful, please rate it!
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!