开发者

Making PHP cookies stay on after browser in closed

A user is automatically logged out of my site upon closing the browser.

Is there a way to make cookies stay active after the browser is closed开发者_JS百科?


<?php
setcookie("test", "test", time()+3600);
?>

Just set the time on it to expire in the future.


You need to manualy set the cookies to keep the session. You need a manualy computed session to identify the user when he opens the browser again.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜