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   828 Views

Avatar
novaweb

Community Member, 115 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, 45 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.

[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

Community Member, 115 Posts

18 August 2014 at 10:55am

Thanks Kirk