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.

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

Avatar
Ed

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).

Avatar
Hamish

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.

Avatar
marcin

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):

/sapphire/security/Member.php
line 179 - add: HTTP::set_cache_age(0);

/sapphire/security/MemberLoginForm.php
line 137 - add: HTTP::set_cache_age(0);

/sapphire/security/Security.php
line 224 - add: HTTP::set_cache_age(0);

Let me know if it is ok...