Click to See Complete Forum and Search --> : problem with session_register()


jobed77
06-29-2001, 02:11 AM
It seems that i can use Sessions with my win/apache/php machine without problems (no error messages when calling session_start()). But I'm not able to store variables in th session. If i call session_register() for a variable i can't use it in the next document, where I also called session_start(). Does anybody have a solution for this problem?

Johannes Bedenbender

Anon
06-29-2001, 02:51 AM
Dear J,

if u do happen to get the solutions for this, then please let me know as i am also having the same problem.

thanx

mike

vincente
06-29-2001, 09:46 AM
Most common reason for this is that you don't 'propagate' the session_id from the first page to the next.
You _MUST_ send the session id from page to page, or PHP will no know which session you mean, and it will create a new (blank) session.

Read the PHP manual section about sessions:
http://www.php.net/manual/en/ref.session.php