Organizational Research By

Surprising Reserch Topic

using PHP Cookie domain / subdomain control

asked May 28, 2015 in PHP by rajesh
0 votes

Related Hot Questions

1 Answer

0 votes
PHP's cookie functions automatically prefix the $domain with a dot. If you don't want this behavior you could use the header function. For example:

header("Set-Cookie: cookiename=cookievalue; expires=Tue, 06-Jan-2009 23:39:49 GMT; path=/;");
answered May 28, 2015 by rajesh