1 Answer
1

For Session, I think the best manner is serializing the session variables somewhere (for instance, an XML or YAML file). These are two different languages and the Session variables are stored in memory, not accesible between processes.

Thanks, I am using php-java bridge, can you please give me useful link or idea to share session using xml or yaml ?
–
Ajay PatelNov 7 '12 at 5:41

1

PEAR has XML_Serializer that serializes variables in XML (link). You can store this XML in a common folder, readable by JSP. For Java, use a XML parser, like SAX or DOM.
–
Cigano Morrison MendezNov 7 '12 at 16:54