Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001041

[PHP-DB] Cookies Stuff From: Lisa Elita (lisa77 <email protected>)
Date: 04/11/01

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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>