Sukanto Kho wrote:
sorry, I was wrong ... all the $session in my previous post should be $cookie... (I typed the wrong word)
I think the domain is not the one that cause the problem... remember that I refer to the same page (but sometimes success and the other time it's fail)
What did u mean by "unless you use the right parameters in setcookie()" Please more detail (I want to know if I miss something in setcookie parameter)..
You can set the domain in setcookie() so that "www.domain.com" and "domain.com" will have the same cookies.
Note that if you use setcookie(), the cookie value isn't actually available until the next request. You should be using setcookie() before any output, also, but you'll get an error (or should) if you're not doing that right.
With some browsers, setting a cookie and then redirecting with header() will not make the cookies available on the next page. Maybe that's your issue?
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php