Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
479 views
in Technique[技术] by (71.8m points)

php - Codeigniter 3.1.11 - Avoiding Session Extension on Ajax Calls to Expire Session on defined timer interval when there is no Human Activity

In CodeIgniter 3.1.11 - I have a JavaScript script which checks servers every 60 seconds for a status of something. I have configured session expiry to 900 seconds. If I disable that script the session expires after 9 minutes of inactivity but if that script is checking server every 60 seconds, the session never expires. How can I avoid ajax request to does not affect session expiry?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...