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.

Customising the CMS

Extending CMS Login Session Time


Reply

3 Posts   717 Views

Avatar
novaweb

18 August 2014 at 10:08am (Last edited: 18 August 2014 11:11am), Community Member, 115 Posts

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

18 August 2014 at 10:48am Community Member, 42 Posts

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.

[url]http://doc.silverstripe.org/framework/en/topics/configuration[/url]

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)

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

Avatar
novaweb

18 August 2014 at 10:55am Community Member, 115 Posts

Thanks Kirk