关闭

session过期监听

338人阅读 评论(0) 收藏 举报
分类:


Sessions are cleaned up automatically by PHP when a session is started and there is currently no way to hook into this process unless you write your own custom session handler.

If you write your own handler, then PHP will call your gc method giving you control over the old session data that gets destroyed. Keep in mind that this happens at the start of the request (when session_start() is called) so you would want whatever processing you do to happen very quickly as not to delay the request being processed.


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:133294次
    • 积分:4639
    • 等级:
    • 排名:第6304名
    • 原创:338篇
    • 转载:124篇
    • 译文:0篇
    • 评论:3条