Re: setcookie(), logout

From: Date: Tue, 25 Jun 2002 17:20:44 +0000
Subject: Re: setcookie(), logout
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103905@lists.php.net to get a copy of this message
The idea is to set the cookie variable to null setcookie("$variable",""); Thats it Pradeep # Pradeep Dsouza # RH-04 E-11 Sector -09 # CBD Navi Mumbai # Maharashtra # India # # # Tel: 022 - 7573097 # Mob: 98205 80286 # Email : pradeep@aspbytecreations.com # http://www.aspbytecreations.com ----- Original Message ----- From: "Pushkar Pradhan" <pushkar@ERC.MsState.Edu> To: <php-general@lists.php.net> Sent: Saturday, June 22, 2002 2:27 AM Subject: [PHP] setcookie(), logout > I'm going over some code handed to me, a logout function: > function user_logout() > { > setcookie( 'user_name', '',(time()+28800), '/', > '',0); > setcookie( 'id_hash', '',(time()+28800), '/', > '',0); > } > Doesn't this mean the cookie will expire after 8 hrs? So what's this > really doing? > Moreover I found this contrib. note on the setcookie reference pg.: > Then why have I not seen anybody using the client's time? > Note: > Just as a note, You might want to use the client browers time to set your > expires, using your local time might mean your cookie wont expire for 24 > hours. > > > > -Pushkar S. Pradhan > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#103905) next »