Date: 08/15/00
- Next message: Hans H. Anderson: "Re: [PHP] Directory Walking"
- Previous message: Patrick Tao: "[PHP] Persistent Cookies"
- In reply to: Patrick Tao: "[PHP] Persistent Cookies"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Hans H. Anderson: "Re: [PHP] Directory Walking"
- Previous message: Patrick Tao: "[PHP] Persistent Cookies"
- In reply to: Patrick Tao: "[PHP] Persistent Cookies"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

