Hello,
I'm working on some functionality that requires the use of user
sessions, and I'm having trouble getting returning session vars.
During a login validation page, I start a new session and register the
following vars like this:
session_start();
session_register("current_user");
session_register("agentname");
session_register("agentpass");
After this page completes processing, it uses the location() function
to redirect the user to another page. However, the session vars are
not being carried over to these pages after redirect.
I'm probably missing something about how PHP session vars work and are
returned. My understanding is that they should be available as normal
vars throughout the session... right?
Also, from what I understand the default storage method for the
session id is cookies right? Do I have to do anything in particular
to ensure that session state is maintained?
Any advice or input would be greatly appreciated.
Thanks,
John