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.

Why doesn't Auto Login on Future Visits ever stick?

August 07, 2012 10:45am

Subscribe [4]
  • #1 / Aug 07, 2012 10:45am

    fanderson

    899 posts

    I can’t count the number of times I have clicked the “Auto Login on Future Visits” box on the sites I have built and it rarely if ever works.

    Any clues?

  • #2 / Aug 08, 2012 11:43am

    Shane Eckert

    7174 posts

    Hello Forrest Anderson,

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

    What version of ExpressionEngine are you currently using?

    What do you have set in the Control Panel? Session or Cookies?

    Thank you,

  • #3 / Aug 08, 2012 2:48pm

    fanderson

    899 posts

    Hi Shane,

    I am running EE 2.5.2 and the site is currently set to Cookies only.

    Based on your question, I am guessing a change in settings is in order.

    Please advise.

    Thanks.

  • #4 / Aug 08, 2012 5:39pm

    Shane Eckert

    7174 posts

    Hey Forrest Anderson,

    Nope, cookies only is what you need to have set. Session would not work.

    Can you give me some information about your browser/OS? Does the behavior span across all browsers that you have used?

    Are you using any kind of .htaccess file?

    Cheers,

  • #5 / Aug 08, 2012 7:17pm

    fanderson

    899 posts

    Shane,

    It happens across browsers: FF and Safari. I am using an .htaccess file to hide index.php.

    Forrest

  • #6 / Aug 08, 2012 7:53pm

    Check that your cookie domain is set to .example.com, and not just example.com. You’ve probably got a conflict between http://www.example.com and and the non-triple-dub version, especially if your .htaccess is enforcing one of those.

  • #7 / Aug 08, 2012 8:09pm

    fanderson

    899 posts

    Hi Dylan,

    I tried doing this and I am not locked out of the control panel.

    The Control Panel is http://www.encoreazalea.com/ee/admin.php

    I set the cookie to .encoreazalea.com/ee/ and now I cannot log in at all. How do I undo what I just did?

    Thanks.

  • #8 / Aug 08, 2012 9:43pm

    If simply trashing your current cookies doesn’t work, you’ll need to modify your config file, at least temporarily, to get around what you’ve written to your database: http://ellislab.com/forums/viewthread/158694/#765445

    You don’t want that /ee/ in your cookie.


    Hope that helps,

    d.

  • #9 / Aug 08, 2012 9:50pm

    fanderson

    899 posts

    I removed the cookie, cleared the cache and set the config file as follows: $config[‘cookie_prefix’] = ’ ‘;

    I am still not able to log into the control panel.

    Any more ideas?

  • #10 / Aug 08, 2012 9:53pm

    You need to try:

    $config[‘cookie_domain’] = ‘.encoreazalea.com’;
    $config[‘admin_session_type’] = ‘c’;

  • #11 / Aug 08, 2012 9:56pm

    fanderson

    899 posts

    That fixed it thanks.

  • #12 / Aug 08, 2012 9:59pm

    You bet. Hope that fixes your auto login issue, as well.

  • #13 / Aug 08, 2012 10:05pm

    fanderson

    899 posts

    Auto login still doesn’t work, but at least I can get in. Thanks.

  • #14 / Aug 09, 2012 1:03pm

    Shane Eckert

    7174 posts

    Hey Forrest,

    Wow, just got caught up on your adventure! Sorry to hear about all that, but glad things are good now.

    Is your server behind any kind of special load balancers or other network devices?

    Do you know if your IP rotates often at your location?

    You might also add this to the config.php file.

    $config[‘admin_session_type’] = “c”;
    $config[‘user_session_type’] = “c”;
    $config[‘require_ip_for_login’] = “n”;

    Can you try that? We will go from there.

    Cheers,

  • #15 / Aug 09, 2012 3:56pm

    fanderson

    899 posts

    Hi Shane,

    Thanks for following up there. I entered the code but I still have to enter my login information each time I go to the CP. As much as I would like to solve this - just because it is a challenge - I don’t think it is worth any more of your time or mine to pursue this “snipe”.

    I appreciate your efforts, but I am going to suggest we close this thread.

    Thanks.

    Forrest

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

ExpressionEngine News!

#eecms, #events, #releases