If I have not set any life time in cookies then what is the default life time in cookie?
for e.g
setcookie("cookiename", $value);
If I have not set any life time in cookies then what is the default life time in cookie?
for e.g
setcookie("cookiename", $value);
When you create a cookie via PHP die Default Value is 0, from the manual:
If set to 0, or omitted, the cookie will expire at the end of the session
(when your browser closes)
Otherwise you can set the cookies lifetime in seconds as the third parameter: