954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

is java page session_id and php page session_id is equal

hi,

is session_id is generated by javapage in one website is equal to session_id generated by phppage????.because i integrated php pages to java pages in that website. so i maitain session based on that java page. is this possible to session_id from java page to php page, if i get ,is they are equal?

php2sheik
Newbie Poster
18 posts since Sep 2008
Reputation Points: 10
Solved Threads: 1
 

Session variables are generated on runtime by the interpreters, so, I think you will get always a different session regardless of it's PHP or Java. Anyway, if you want to pass a Java variable to PHP it's possible through a simple url query when the php script is loaded.

martin5211
Posting Whiz in Training
271 posts since Aug 2007
Reputation Points: 52
Solved Threads: 23
 

You could also write the session data associated with that session ID so a shared resource, such as a database or file. Then both PHP and Java can share the data associated with a session.

digital-ether
Nearly a Posting Virtuoso
Moderator
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You