RE: [PHP] Blatant newbie question - killing a session

From: Date: Fri, 11 Jul 2003 02:59:09 +0000
Subject: RE: [PHP] Blatant newbie question - killing a session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-154821@lists.php.net to get a copy of this message
Thanks, That did the trick. Nicely encapsualable too, so I can easily remove it. Regards Bruce -----Original Message----- From: Marek Kilimajer [mailto:kilimajer@webglobe.sk] Sent: Thursday, 10 July 2003 8:23 PM To: Bruce Bruen Cc: php-general@lists.php.net Subject: Re: [PHP] Blatant newbie question - killing a session 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#154821) next »