Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

How do I timeout a session?


Reply


521 Views

Avatar
_Vince

Community Member, 162 Posts

2 July 2012 at 4:30pm

Hi, I'm using Silverstripe 2.4.7 and I have a lot of forms on the front-end.

Sometimes, when a user has been inactive for a while, their session times out. Because the forms use AJAX to retrieve data from the database, the user clicks on a link and they get the login page instead of the fetched content they were expecting.

I can understand why that happens, but what I would like to know, is how can I time sessions out (in dev) so that I can test for that sort of behaviour?

I tried deleting the cookies but that made no difference. How do I time out a session?