problem with cookie
Posted 05 September 2006 - 08:54 PM
when i add www in my URL the cookies do not work .
1 ) http://mydomain.com ( cookies work )
2 ) http://www.mydomain.com ( cookies do not work )
have anyone had this problem ?
thanks in advance .
Posted 06 September 2006 - 12:46 PM
Posted 06 September 2006 - 12:57 PM
domain argument for setcookie: "To make the cookie available on all subdomains of example.com then you'd set it to '.example.com'. The . is not required but makes it compatible with more browsers. Setting it to www.example.com will make the cookie only available in the www subdomain"
so to make it work for everything, maybe try ".mydomain.com" as the domain argument in setcookie()
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users