PHP Logout message

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dynastym3
Forum Newbie
Posts: 13
Joined: Sun Apr 05, 2009 2:12 am

PHP Logout message

Post 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?
User avatar
andyhoneycutt
Forum Contributor
Posts: 468
Joined: Wed Aug 27, 2008 10:02 am
Location: Idaho Falls

Re: PHP Logout message

Post 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().
Post Reply