Re: Persistent Cookies

From: Date: Tue, 15 Aug 2000 23:20:55 +0000
Subject: Re: Persistent Cookies
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11883@lists.php.net to get a copy of this message
On Tue, 15 Aug 2000, Patrick Tao wrote: > here are my cookie statements > > setcookie("uid", $useruid, "time()+30000", "/", > ".domain.com", 0); > setcookie("pwd", $userpassword, "time()+30000", "/", > ".domain.com", 0); > > any help is welcome! i would like to avoid using javascript if at all > possible! Hi Patrick, Your lines are wrong because you are putting quotes on the lifetime part of your cookies. If you put the function time() inside quotes, it's going to be interpreted as "time()" and now 987866555 or whatever. Anyway, try removing the quotes from the time() parameter. Regards, Joao -- Joao Prado Maia Web Developer Kefta.com, Inc

« previous php.general (#11883) next »