Page 1 of 1
PHP Logout message
Posted: Wed Apr 15, 2009 2:42 pm
by dynastym3
I need help with my logout page, I need a logout message stating that "you are logging out" for example. Does anyone know how that works?
Re: PHP Logout message
Posted: Wed Apr 15, 2009 3:19 pm
by andyhoneycutt
Basically, you'll want to undo whatever it is you do when they login. If you update a record in a database table to say they're logged in, update it to say they are logged out. If you start a session with user credentials in it, you'll want to destroy it. The latter being more or less straight forward with a standard php/apache install: session_destroy().