Re: [PHP] session_unset & session_destroy being called outside of logic.

2001-09-13 Thread Jason Bell
Thanks for the reply Kirk! > > case logout: > >session_unset(); > >session_destroy(); > >$AuthErr = "Session Terminated"; > >break; > > > > > > What is happening, is after the user authenticates and logs > > in, everything > > looks good, but whenever the user follows any link, t

RE: [PHP] session_unset & session_destroy being called outside of logic.

2001-09-13 Thread Johnson, Kirk
Several comments, Jason. > session_destroy() terminates the session, which cannot be > started up again > until the browser is restarted... Yes, session_destroy removes the session file that stores the values of session variables between pages. Once gone, it cannot be accessed again under any

Re: [PHP] session_unset & session_destroy being called outside of logic.

2001-09-13 Thread Jason Bell
- From: "Jason Bell" <[EMAIL PROTECTED]> To: "PHP Users" <[EMAIL PROTECTED]> Sent: Thursday, September 13, 2001 3:12 PM Subject: [PHP] session_unset & session_destroy being called outside of logic. Hello all! I am switching a variable to check if a user

[PHP] session_unset & session_destroy being called outside of logic.

2001-09-13 Thread Jason Bell
Hello all! I am switching a variable to check if a user is logging in or logging out. If the value of the variable is logout, I want the user to logout, i.e: case logout: session_unset(); session_destroy(); $AuthErr = "Session Terminated"; break; What is happening, is after the u