note 9704 added to setcookie

From: Date: Mon, 20 Nov 2000 11:28:40 +0000
Subject: note 9704 added to setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-7912@lists.php.net to get a copy of this message
I must comment what was said here about setting cookies with time less than time()+500. I have a time()+360 and it works fine, and I have not experienced any problems with cookies whe setting them with setcookie(). I have one question though, how does the time in the cookie relate to the time on the server? I know that when I set a time in the cookie, let´s say time()+360, and save the time string in a table, the time will still be the same in both the cookie and the table after 3 minutes. And since the time on the server and in the browser isnt the same, the browser must have nothing to do with the time and its just a string, not something that the browser checks every second to know when to delete it. These are just my thaughts, please tell me if I´m wrong or if I missed something. /digizard http://www.php.net/manual/function.setcookie.php

« previous php.notes (#7912) next »