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, Ed, biapar, Willr, Ingo, swaiba

Security/logout problem

Go to End

3 Posts   3334 Views


Forum Moderator, 7 Posts

29 January 2009 at 12:57pm

On a site we're currently working on, clicking Logout in the CMS (or going directly to /Security/logout) doesn't logout but instead just takes you to the CMS.

No core files have been changed, and it is happening in 2.2.3 and 2.3.0-rc2.

It's also not happening on another site operating off the exact same core 2.3.0-rc2 codebase (symlinked).


Community Member, 712 Posts

29 January 2009 at 1:24pm

Weird. This rule is defined in /sapphire/_config.php:

Director::addRules(10, array(
	'Security//$Action/$ID/$OtherID' => 'Security',

Have you created any other rules in another _config.php that could be causing conflicts? Maybe try the SVN trunk version, that is definitely working fine.


Community Member, 5 Posts

5 February 2009 at 4:29am

Try this (it resolved my problem in SS 2.2.3, nothing more core files changed):

line 179 - add: HTTP::set_cache_age(0);

line 137 - add: HTTP::set_cache_age(0);

line 224 - add: HTTP::set_cache_age(0);

Let me know if it is ok...