Justin Giboney wrote:
I started the session on previous pages

Do you have to start a session on every page?

yes, kind of. You call the session_start command on every page so php knows that it needs to look for the cookie, you should call it near the top of the script(if you are using cookie based sessions you must call it before you output anything). If the cookie exists php uses that session. If the cookie does not exist php sends one and creates the session. I use a session variable to make sure users are logged in(this also allows me to assign access levels).

Kyle

--
no amount of fear can stop the rise of free media, or free software (they are 
the same, after all)

Jonathan Swartz
CEO Sun Microsystems


_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to