Re: cookies under php 4.06

From: Date: Thu, 04 Sep 2003 14:38:41 +0000
Subject: Re: cookies under php 4.06
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161657@lists.php.net to get a copy of this message
> setcookie("UserName", $HTTP_POST_VARS['UserName'], time()+(60*10), > "/", > $HTTP_SERVER_VARS['SERVER_NAME']); > setcookie("Password", $password, time()+(60*10), "/", > $HTTP_SERVER_VARS['SERVER_NAME']); > print "login - set cookie"; sorry for kinda answering my own post... but anyway... setcookie("UserName", $HTTP_POST_VARS['UserName']); setcookie("Password", $password); solves my problem, although means i can't have a time limit on my cookies i guess... but can set a time limit with another cookie...

« previous php.general (#161657) next »