2013-02-06 6 views

답변

3

당신이 쿠키를 만들 PHP 다이를 통해 기본값은 0입니다. 매뉴얼에서 :

If set to 0, or omitted, the cookie will expire at the end of the session 
(when your browser closes) 

그렇지 않으면 쿠키 수명을 설정할 수 있습니다 세 번째 매개 변수는 초 단위입니다.

http://www.php.net/manual/en/function.setcookie.php

1

(브라우저가 닫힐 때)를 0으로 설정하거나 생략하면

만료 쿠키는 세션의 끝에서 만료 . 예를

1

cookies 매개 변수가 설정되지 않은 경우, 쿠키가 세션 (브라우저를 닫을 때)의 말에 만료됩니다 ..

1
When you create a cookie via PHP Default Value is 0 

If set to 0, or omitted, the cookie will expire at end of the session 
ie when the browser closes 
관련 문제