PHP setcookie
setcookie -- 쿠키를 전송합니다 bool setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]]]]]) $value = 'something from somewhere'; setcookie("TestCookie", $value); setcookie("TestCookie", $value,time()+3600); /* 1시간 뒤에 만료 */ setcookie("TestCookie", $value,time()+3600, "/~rasmus/", ".example.com", 1);
2008. 10. 14.