RE: [PHP] I'm not <username>, log me out....
| From: | Matthew Loff | Date: | Sat, 27 Oct 2001 23:33:28 +0000 |
| Subject: | RE: [PHP] I'm not <username>, log me out.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-72595@lists.php.net to get a copy of this message | ||
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:alewis@jumboclassifieds.com]
Sent: Saturday, October 27, 2001 9:45 AM
To: php-general@lists.php.net
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: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net