简体   繁体   English

调试php会话超时

[英]Debugging php session timeout

I got one unsolvable bug at work. 我遇到了一个无法解决的错误。 I got a logout timer at the bottom of the page set at 45 mins 我在页面底部设置了45分钟的登出计时器

Every time a page request is made the session timeout gets updated and everything seems fine and it works. 每次发出页面请求时,会话超时都会得到更新,一切似乎都可以正常进行。

Thing is, the client is using some pages longer than 45 mins(Editing in wysiwyg) and needs to reset the session timout without reloading the page. 问题是,客户端使用的某些页面超过45分钟(在“所见即所得”中编辑),并且需要重置会话时态而不重新加载页面。

My solution to this is to send an ajax request updating the session. 我对此的解决方案是发送一个ajax请求来更新会话。 Everything seems fine. 一切似乎都很好。 Dumping the session variable shows correct values. 转储会话变量会显示正确的值。 But the session timeout wont extend. 但是会话超时不会延长。 At some point the session times out anyway. 在任何时候会话都超时。

Is it impossible to reset the session timeout through ajax? 是否可以通过ajax重置会话超时? Anyway to debug this problem would be nice? 无论如何调试这个问题会很好吗?

This webapplication is using liveuser from PEAR and the code is messy as hell! 该Web应用程序正在使用PEAR的liveuser,并且代码太混乱了! I cant figure out what is happening! 我不知道发生了什么!

不,通过ajax设置会话超时并非没有可能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM