Jump to:

23486 Posts in 18995 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Security/logout problem

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

Page: 1
Go to End
Author Topic: 2473 Views
  • Ed
    Community Member
    6 Posts

    Security/logout problem Link to this post

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

  • Hamish
    Community Member
    712 Posts

    Re: Security/logout problem Link to this post

    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.

  • marcin
    Community Member
    5 Posts

    Re: Security/logout problem Link to this post

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.