PHP Logout message
Moderator: General Moderators
PHP Logout message
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?
- andyhoneycutt
- Forum Contributor
- Posts: 468
- Joined: Wed Aug 27, 2008 10:02 am
- Location: Idaho Falls
Re: PHP Logout message
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().