开发者

Debugging php session timeout

开发者 https://www.devze.com 2023-02-14 08:28 出处:网络
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 wor

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 upda开发者_StackOverflowting 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!


No, it is not impossible to set the session timeout through ajax.

0

精彩评论

暂无评论...
验证码 换一张
取 消