2

I'm developing a site on local server, so the url of the site is http:/goodies/, there is no domain ending like ".com"

How can I make this code work?

setcookie('user', $user_check, time() + (86400 * 3), '/', 'goodies');
4

1 に答える 1

3

$domain引数を渡さないでください。必要ありませんhttp://php.net/manual/function.setcookie.php

于 2012-06-17T08:49:06.530 に答える