All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
Delphi的绘图类
用C#和ADO.NET建立一个数据绑定网格_.net资料_编程技术
PHP实例:PHP取GB2312编码字符串首字母的方法_php资料_编程技术
C#实现Word中表格信息读取_[Asp.Net教程]
SQL,Server数据库事务锁机制的分析_[SQL,Server教程]
用PHP读取和编写XML,DOM_php资料_编程技术
Mysql中limit的用法详解_mssql学习_编程技术
网页特效:在任何位置显示html菜单_JavaScript技术_编程技术
ASP.NET2.0下含有CheckBox的GridView删除选定记录实例_[Asp.Net教程]
提高SQL,Server安全性的一些建议_mssql学习_编程技术
Reading number is top 10 pictures
西班牙山村小景5
深圳的风光
中国的十元人民币的秘密
美丽的少女1
No trading, no killing
中国处女图鉴1
30 beautiful school beauty5
移民小国也实惠1
Sell the barbecue as says father du breul1
运动的范冰冰1
Download software ranking
天龙八部十二宫服务端
Photoshop 8.0图象编辑软件
The cock of the Grosvenor LTD handsome
Boxer Classic video1
The Bermuda triangle3
Boxer's Top ten classic battle8
Unix video tutorial2
WebService在.NET中的实战应用教学视频 → 第2集
Boxer's Top ten classic battle1
Unix video tutorial1
aaa published in(发表于) 2013/12/21 22:24:59 Edit(编辑)
PHP中的session的几个问题_php资料_编程技术

PHP中的session的几个问题_php资料_编程技术

PHP中的session的几个问题_php资料_编程技术-你的首页-uuhomepage.com
session 的生命周期是多长
1 浏览器结束时其生命周期也同时结束,但是档案仍然存在于 /tmp/(sess_???)
2 下次重新开浏览器时会重新分配 sessionID,如果你使用 session_id() 把以前的 ID 带回来,则会去读取残存在 /tmp 处的 sess_???, 取回你之前所有已经设定的参数
3 可以在 php.ini 里修改 session 档案残存的时间

session.gc_maxlifetime = 1440 ; after this number of seconds, stored
data will be seen as 'garbage' and
cleaned up by the gc process

默认是 1440 秒,24分钟

使用 session 注意的存储路径问题

看看 php.ini 里对于 session 的设置

[Session]
session.save_handler = files ; handler used to store/retrieve data
session.save_path = /tmp ; argument passed to save_handler
in the case of files, this is the
path where data files are stored

默认是存于 /tmp 目录下,这个目录可不一定真有啊!!! 最好改为你的 php 安装路径,比如 c:/php




添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.