Re: Blatant newbie question - killing a session
| From: | Marek Kilimajer | Date: | Thu, 10 Jul 2003 10:23:13 +0000 |
| Subject: | Re: Blatant newbie question - killing a session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154698@lists.php.net to get a copy of this message | ||
You mean killing the session cookie?
setcookie (session_name(), "", time() - 3600);
session_unset(); // or $_SESSION = array();
session_destroy();
Bruce Bruen wrote:
Hi, this is my first question to the list and ... Yes I'm a newbie, verrry wet behind the ears. I am trying to set up a secured site under IIS. I have done pretty well by my standard to get to where I have. Authoursed users can access the site, unauthorised ones get sent elsewhere. So, I am now up to testing the various security combinations and its driving me mad that the session persists when I'm testing bad logins. How or where does one set up a "session extuinguisher"? After one two or n attempts I want to kill the entire session and start afresh - note this is in testig only, the way it works now is great for live. Tia Bruce