I have a whole user system made, and I keep people logged in with two session variables:
areyouin (checks to see if a user is logged in at all)
user (name of user if areyouin = true)
how can I make a logout script?
log out (clear session)
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
A simple
will clear the user session
Code: Select all
$_SESSION = array();