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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

Extending CMS Login Session Time


Go to End


3 Posts   3230 Views

Avatar
novaweb

Community Member, 116 Posts

18 August 2014 at 10:08am

Edited: 18/08/2014 11:11am

Howdy Silverstripers,

Here is my solution to do this from 2012, however - is there a "proper" way to do this?

http://www.silverstripe.org/general-questions/show/19349

Want to set the session time out to more than what it currently is based on the users activity.

Best,
Josh

Avatar
Kirk

Community Member, 67 Posts

18 August 2014 at 10:48am

For the latest version of SilverStripe you can set the Session timeout via the config system and there is also a set_timeout method on Session but this method will be deprecated fairly soon.
The best way would be to do this would be via the yml config.

http://doc.silverstripe.org/framework/en/topics/configuration

There is also a discussion about this on Stackoverflow which makes a good point about the CMS system pinging every 5 minutes to keep the session alive (won't affect the front end users)

http://stackoverflow.com/questions/24158545/how-can-i-logout-an-administrator-in-silverstripe-3-1-x-after-period-of-inactivi

Avatar
novaweb

Community Member, 116 Posts

18 August 2014 at 10:55am

Thanks Kirk