简体   繁体   中英

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

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.

My solution to this is to send an ajax request updating the session. 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? Anyway to debug this problem would be nice?

This webapplication is using liveuser from PEAR and the code is messy as hell! I cant figure out what is happening!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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