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.

Unable to log into CP

September 07, 2010 4:34pm

Subscribe [7]
  • #1 / Sep 07, 2010 4:34pm

    jeffc

    30 posts

    I’ve been building a site for a few weeks now and it’s been working as expected. Suddenly this morning after working on the site, logging in and out a few times, logging in on the front end and then changing the security prefs to use sessions rather than cookies for the control panel I can no longer log into the site. No matter what happens, I get redirected to the log in screen with no errors.


    I scoured the forums and have tried the following thus far:

    - did a password reset
    - deleted all cache files in /system/expressionengine/cache
    - cleared local cookies, sessions, etc.
    - restarted browser
    - tried logging in on another computer, ipad, iphone - no avail
    - deleted all data from exp_sessions in db
    - tried logging in an as another super admin
    - add several config overrides to the config file trying every possible combination

    $conf['user_session_type'] = "s";
    $conf['admin_session_type'] = "s";
    $conf['allow_multi_logins'] = "y";
    $conf['require_ip_for_login'] = "n";

    I can log in via the front end but then trying to load a page in the control panel just redirects me to the log in screen. I’ve change the system folder name but even that was done weeks ago.

    At this point I’ve tried everything I can think of. Is there anything else I could try?

  • #2 / Sep 07, 2010 5:01pm

    saraking

    17 posts

    This exact thing happened to me a week ago and lasted for a day or so. It ‘magically’ fixed itself so I thought nothing more about it. Switching browsers actually worked for me - it was happening in Safari but worked fine in Firefox.

  • #3 / Sep 07, 2010 5:21pm

    circa1977

    118 posts

    I’ve long had issues with Safari & Control Panel logins. I all but abandoned it. The most common issues revolved around a number of Staging sites with the same base domain in their subdomains, but it was just too much overhead.

    I typically test sites in Firefox and have found Chrome to be great for Control Panel access.

  • #4 / Sep 07, 2010 6:35pm

    jeffc

    30 posts

    I’ve tried on two different computers and with three different browsers. It’s just weird that it was working fine this morning right up until it didn’t.

  • #5 / Sep 07, 2010 6:51pm

    Mark Bowen

    12637 posts

    When you try with sessions enabled do you still get the session ID tacked on the end of the URL even though it isn’t working?

    If so check your cookies in your browser and ensure you don’t have multiple cookies for that site which are doing the same thing. That or a cookie array. I had the exact same problem and it was due to a page tracking plugin which I had installed.

    Something to check for at least.

    Hope you get it all sorted soon.

    Best wishes,

    Mark

  • #6 / Sep 07, 2010 8:08pm

    jeffc

    30 posts

    No, I don’t get the session ID tacked on when I disable using sessions, which is how it is set now. I’ve deleted cookies numerous times as i’ve been trying to figure this out and didn’t see anything like that at all.

  • #7 / Sep 08, 2010 4:40am

    Mark Bowen

    12637 posts

    No, I don’t get the session ID tacked on when I disable using sessions, which is how it is set now. I’ve deleted cookies numerous times as i’ve been trying to figure this out and didn’t see anything like that at all.

    I think you misread what I posted 😉

    If you try with sessions enabled do you still get the session ID showing at the end of the URL?

  • #8 / Sep 08, 2010 10:01am

    Sue Crocker

    26054 posts

    jeffc, does what Mark mentions help?

    Thanks for the assist, Mark!

  • #9 / Sep 08, 2010 11:57am

    jeffc

    30 posts

    Sorry Mark.

    So I enabled session in the config file and did not get the session ID in the URL. However, I logged in on the front end (which works with sessions or cookies) and once I did that, trying to log inot the control panel gave me the session ID in the URL. Of course, it still won’t log me in.

  • #10 / Sep 08, 2010 12:50pm

    jeffc

    30 posts

    Is there a way to bypass the log in or override it? Short of completely reinstalling the site from scratch, I’ve got not clue as to what to do next.

  • #11 / Sep 08, 2010 5:29pm

    Ingmar

    29245 posts

    Can you try with cookies only (for both front end and back end), or session_ids only? Also, what version and build are you using?

  • #12 / Sep 08, 2010 5:34pm

    jeffc

    30 posts

    So it turns out the problem was that my .htaccess file had somehow been saved with the wrong encoding. I’m reasonably sure I hadn’t touched it so maybe an addon?

    In any case opening it up and re saving it fixed this nightmare for me.

  • #13 / Sep 08, 2010 5:44pm

    Ingmar

    29245 posts

    So you’re up and running? Just making sure.

  • #14 / Sep 08, 2010 5:44pm

    jeffc

    30 posts

    yep, thanks!

  • #15 / Sep 08, 2010 5:49pm

    Ingmar

    29245 posts

    Excellent. Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases