I have trouble overwriting the cookie value addition subdomain, a website running in ASP which is www.domain.com and Mobile is sharing the same cookie with the MSI with the site running in PHP
The cookie is made as ASP in www.domain.com:
reaction. Cookies ("cookie_name") = "value1" response.cquiz ("cookie_name"). Timeout = Add date ("m", 1, date ()) response. Cookies ("cookie_name"). Domain = ".domain". "Reaction. Cookies (" When I try to overwrite the value in PHP (m.domain.com), I have found that ": setkey (" cookie_name ", 'Value 2', time () + 60 * 60 * 24 * 30, "/", ".domain.com", incorrect);
Execution return is true, but when I If I checked the cookie then the value could still not be changed "value1"
also tried to set the header through
header ("set- Cookie: Cookie_name = value2; path = /; domain = .domain.com; ends = ". Gmstrftime ("% A,% d-% b-% Y% H:% M:% s GMT ", time () + 60 * 60 * 24 * 30);
But still no blame, no idea? Many thanks.
Finally I Worked
header ("cookie_name = value2; expires =" .gmstrftime ("% A,% d-% b-% Y% H:% M:% S GMT" , Time () + 60 * 60 * 24 * 30). "; Path = /; domain = domain."); Note the domain part (a dot), hope That it helps others
Comments
Post a Comment