session过期监听


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.


阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011628250/article/details/46777561
个人分类: PHP
上一篇创建DB 并给编码
下一篇遮罩层
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭