CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2010
    UK - South Coast

    Accessing the PHP Session ID using only Java?

    Hey CodeGurus,

    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?

    Many thanks


  2. #2
    Join Date
    Jul 2005
    Currently in Mexico City

    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.