ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CP hates cookies and sessions.

March 01, 2012 3:25pm

Subscribe [3]
  • #1 / Mar 01, 2012 3:25pm

    Hey you guuuys..

    I’m having some very strange CP issues on one of my sites. All superadmins are reporting a lack of cooperation for CP authentication:

    When the CP session type is set to cookies, nobody can log in. At all.

    When the CP session type is set to sessions, you can login, and sometimes save new settings/ channel entries, sometimes not. Sometimes it logs you out!

    Using both of the above results in a wonky combination of the above characteristics. Right, lots of fun 😉

    Please consider the below relevant section of config.php:

    $config['doc_url'] = "http://ellislab.com/expressionengine/user-guide/";
    $config['is_system_on'] = "y";
    $config['allow_extensions'] = 'y';
    $config['site_label'] = 'laybel';
    $config['admin_session_type'] = "s";
    $config['user_session_type'] = "c";
    $config['require_ip_for_login'] = "n";
    $config['require_ip_for_posting'] = "n"; 
    $config['cookie_prefix'] = "";
    $config['secure_forms'] = "n";

    Is this symptomatic of any known bug?  Thanks in advance for helping us resolve it - it’s kind of an emergency.

    EDIT: When it’s set to sessions, the user gets ONE submit that works, then the rest are seemingly ignored. Hm.. what kind of caching might that be?

  • #2 / Mar 01, 2012 3:32pm

    Steven Grant

    894 posts

    I’ve had similar in the past Caroline.

    This seems to resolve the issue

    $config['cookie_domain'] = "";
    $config['cookie_path'] = "";
    $config['cookie_prefix'] = "";
    $config['admin_session_type'] = "c";
  • #3 / Mar 01, 2012 3:40pm

    Thanks so much, Steven,

    Unfortunately I keep getting the same result with cookies described above - they lock everyone out. Even on brand new browsers where cookies for the site had not been set.

    So cookies are broken? Even with those settings. I don’t know what to do.

    Thanks again.

  • #4 / Mar 02, 2012 1:38pm

    Shane Eckert

    7174 posts

    Hello .carolinecblaker.,

    I am sorry to hear you are running into this issue.

    What version of ExpressionEngine is this site running?

    Did you make any changes to ExpressionEngine or the server recently?

    Are you able to login and do what you need to do from where you are? Is it just user coming in from a particular site that have this issue?

    You can also try changing the line $config[‘admin_session_type’] = “c”;  to $config[‘admin_session_type’] = “s”; for sessions.

    You answers to these questions will help me better troubleshoot.

    Again, I am sorry you are having this problem, so not fun and so not a great thing to head into the weekend with.

    Cheers,

  • #5 / Mar 06, 2012 2:30pm

    Hi Shane,

    We’ve more or less solved this - correcting errant Varnish settings (and removing that cacher entirely from the project.)

    So it WAS the server.

    Mark solved, please.

    Thank you.

  • #6 / Mar 08, 2012 3:52pm

    Shane Eckert

    7174 posts

    Hello .carolinecblaker.,

    I am glad to hear that.

    If there is anything else that comes up, let us know.

    Cheers!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases