Re: Cookie expiry period

From: Date: Tue, 07 Nov 2000 06:38:15 +0000
Subject: Re: Cookie expiry period
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24059@lists.php.net to get a copy of this message
Claude Cormier wrote: > > Hi! > > I want to set a cookie that will expire only in 10 years, in other words a > permanent cookie. > > when I create one with: > > setcookie ("Cookiename", $cookievalue, time() + 315360000) > > the cookie remains permanent. But it seems to be destroyed after a couple of > days or weeks. There is no observable pattern... Anny suggestions ! > > Claude > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net A cookie can be destoryed/delete at the whim of the browser... Most(All??) browsers will limit the number of cookies stored and will then start overwirting the oldest cookies. You could be running into a date problem which browser have you tried... George Patterson -- george@laopdr.com Network Administrator Planet Online Vientiane, Lao PDR

« previous php.general (#24059) next »