Cookies Stuff
| From: | Lisa Elita | Date: | Wed, 11 Apr 2001 11:06:20 +0000 |
| Subject: | Cookies Stuff | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-8482@lists.php.net to get a copy of this message | ||
Hi everybody,
I am trying to use cookies in my website and want to ask you these
questions:
1. Header("Set-Cookie") or SetCookie() is better? as the setcookie manual
comments said that Header("Set-Cookie") is better.
2. Domain=myserver.com OR domain=.myserver.com OR skip the domain argument
is better? (to make the cookie available whether visitors are coming to my
site with http://www.myserver.com or http://myserver.com )
3. What SetCookie statement must I use to make the cookie available in the
entire website? Is it Header(SetCookie: cookiename=cookievalue;
expires=Friday, 16-Jan-2037 00:00:00 GMT; path=/; domain=.myserver.com); ?
Thank you!
Lisa Elita