I found sessions to be kind of fussy to get working, perhaps that's just
because I didn't have any experience with them until the last site I
did...
A simple call to session_unset() won't erase the session, but should
clear whatever username/passkey (I say passkey, assuming/hoping it's
encrypted) is stored in the session.
-Original Message-
From: Andy Lewis [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 27, 2001 9:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP] I'm not username, log me out
Hello All,
I'm trying to use php sessions to logout a user that may be sharing a
computer with another user.
In other words. I don't want user1 to access my site and then user2 be
able to access user1's account with an auto login because the session
was saved.
I've seen a few sites that have a URL or button that a user can click on
such as: I'm not Joe Smith, please log me out.
This is what I am trying to accomplish. Can someone point me in the
right
direction? I have sessions implemented using username and password but,
on
my login page since those vars are saved in the session the user
automatically gets logged in.
I also would like to have a checkbox on the login page that, if checked,
doesn't cache the username and password. So if they logout they must
enter
a username and password, instead of getting automatically logged in.
Any help will be highly appreciated.
Andy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]