PHP的cookie函数会自动在$
domain前面加一个点。如果您不希望出现这种情况,可以使用标头函数。例如:
header("Set-cookie: cookiename=cookievalue; expires=Tue, 06-Jan-2009 23:39:49 GMT; path=/; domain=subdomain.example.net");
PHP的cookie函数会自动在$
domain前面加一个点。如果您不希望出现这种情况,可以使用标头函数。例如:
header("Set-cookie: cookiename=cookievalue; expires=Tue, 06-Jan-2009 23:39:49 GMT; path=/; domain=subdomain.example.net");