note 46067 deleted from function.mktime by derick

From: Date: Sat, 26 Jul 2008 10:02:25 +0000
Subject: note 46067 deleted from function.mktime by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-142766@lists.php.net to get a copy of this message
Note Submitter: Evorg ---- mktime should be used when removing cookies. Normally people tend to use: time()-3600 to set the expiration date in "the past". The problem with this is that some computers is set at a wrong date and therfore differs from the server-time. That will render the time()-3600 unusable. Instead use mktime(12,0,0,1, 1, 1990) as you expiration criteria. I'm convinced that only a very few users has set their time back more than 1990 :)

« previous php.notes (#142766) next »