Thanks,

That did the trick.  Nicely encapsualable too, so I can easily remove
it.

Regards
Bruce

-----Original Message-----
From: Marek Kilimajer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 10 July 2003 8:23 PM
To: Bruce Bruen
Cc: [EMAIL PROTECTED]
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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to