Working with storing and reusing session variables. If I use t1.php to generate a form, and the form calls t2.php, the session vars are available.
If upgrade t1.php to recognize if it is the first time it has been called versus the second time e.g. if (isset($some_session_var)) { generate_second_page(); } else { # set $some_sesson_var in the function # and use session_register() for that var. # I have verified that I'm using "global $some_session_var" # under here as well as generate_second_page(). generate_initial_page(); };
Under this scenario, I'm unable to find any session vars. That is, "$some_session_var" is never set the second time I call t1.php. If I change the <form> tag to call t2.php that has the code for 'generate_second_page()' than all seems to work ok. Am I missing something?
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php