PHP中设置Session过期的方法 ? gry's blog

来源:百度文库 编辑:神马文学网 时间:2024/05/01 21:05:01


Session的有效期是随浏览器进程的,浏览器关掉后就没了,那么怎么像Cookies那样设置过期时间呢?下面这段代码就可以实现。

[Copy to clipboard]Download session_cookies.txt
1            2            3            4            5            

cookies, PHP, session, 有效期

This entry was posted on 2009年10月2日, 09:16 and is filed under PHP. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.

  • Comments (0)
  • Related Posts
  1. No comments yet.
(will not be published)

*
Please enter the letter or number in the image, case insensitive. Click on the picture to hear an audio file of the word.


Submit Comment

  • 使用Firefox浏览本网站,达到最佳效果!