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

Security/logout problem


Reply

3 Posts   2492 Views

Avatar
Ed

29 January 2009 at 12:57pm Community Member, 6 Posts

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

29 January 2009 at 1:24pm Community Member, 712 Posts

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

5 February 2009 at 4:29am Community Member, 5 Posts

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