Re: setcookie
| From: | Joe Stump | Date: | Mon, 20 Nov 2000 22:49:57 +0000 |
| Subject: | Re: setcookie | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26343@lists.php.net to get a copy of this message | ||
> else
> {
> setcookie("cookie_p",$md5password);
> setcookie("cookie_u",$uname);
>
> header("Location:http://mysite.com/welcome.php?uname=$uname");
> exit();
> }
Try this:
// One hour
$COOKIE_EXPIRE = (time() + 3600);
// Notice the leading .
$COOKIE_DOMAIN = '.miester.org';
setcookie("name_of_cookie",$value,$COOKIE_EXPIRE,"/",$COOKIE_DOMAIN);
--joe
>
> Thanks
> Ken
> --
> I've got all the money I'll ever need if I die by 4 o'clock.
> -- Henny Youngman
>
>
>
> --
> 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
================================================================================
= Joe Stump joestump98@yahoo.com http://www.miester.org =
================================================================================
"Real programmers don't comment their code.
It was hard to write, it should be hard to understand."