setcookie(), logout

From: Date: Fri, 21 Jun 2002 20:57:45 +0000
Subject: setcookie(), logout
Groups: php.general 
Request: Send a blank email to php-general+get-103339@lists.php.net to get a copy of this message
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

« previous php.general (#103339) next »