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.

Switched DNS and now can't login to CP

August 02, 2010 3:32pm

Subscribe [6]
  • #1 / Aug 02, 2010 3:32pm

    jtree

    255 posts

    I just switched the DNS for a domain so it’s pointing at the new host with EE.  I now can’t login to the CP.  When I type in my login info it just re-directs me back to the CP login screen again.  I didn’t have this issue before I changed the DNS.  Thanks!

  • #2 / Aug 02, 2010 3:54pm

    Ingmar

    29245 posts

    What version and build of EE are you using? Are you sure it’s all properly propagated yet? Just when did you make the switch?

  • #3 / Aug 02, 2010 4:23pm

    jtree

    255 posts

    I’m using EE 1.6.9 Build:  20100430.  I’m pretty sure it’s propagated.  When I go to the domain name url with the system folder it takes me to the EE CP login page.  I made the switch this morning.

  • #4 / Aug 02, 2010 7:34pm

    Brandon Jones

    5500 posts

    jtree,

    First please clear your browser cookies and cache. Then add the following to /system/config.php:

    $conf['admin_session_type'] = "s";

    Does that allow you in?

  • #5 / Aug 02, 2010 8:21pm

    jtree

    255 posts

    Yeah, that got me into the CP.  So what is the next step?

  • #6 / Aug 02, 2010 8:53pm

    Brandon Jones

    5500 posts

    Check your cookie domain. If it’s already set, you can try making it blank and seeing if that works. Otherwise, set it to “.yournewdomain.com” with the leading dot. Then you can remove that line you added to config.php to test.

  • #7 / Aug 02, 2010 11:13pm

    jtree

    255 posts

    Ok, it was originally blank.  I added in the domain with a leading dot.  When I remove the “admin session type” code from the config.php file I’m unable to login again.

  • #8 / Aug 03, 2010 4:57pm

    Ingmar

    29245 posts

    There seems to be an issue with your cookies. When you add this to your config.php

    $conf['cookie_domain'] = ".example.com";
    $conf['cookie_path'] = "";
    $conf['cookie_prefix'] = "";
    $conf['admin_session_type'] = "c";
    $conf['user_session_type'] = "c";
    $conf['require_ip_for_login'] = "n";
    $conf['require_ip_for_posting'] = "n"; 
    $conf['secure_forms'] = "n";

    are you able to login?

  • #9 / Aug 03, 2010 5:01pm

    jtree

    255 posts

    Nope, doesn’t let me login in.

  • #10 / Aug 04, 2010 5:40am

    John Henry Donovan

    12339 posts

    jtree,

    Just to confirm before we continue troubleshooting this. Did you switch out.example.com with your own site’s domain in Ingmar’s example?

  • #11 / Aug 04, 2010 10:30am

    jtree

    255 posts

    Yes, I verified I had my actual domain is in the cookie settings.  I had to change the config.php file back to have the following code to allow me to login though:

    $conf['admin_session_type'] = "s";
  • #12 / Aug 04, 2010 1:30pm

    Sue Crocker

    26054 posts

    What happens if you shift to “cs” instead of “s”?

  • #13 / Aug 04, 2010 2:34pm

    jtree

    255 posts

    If I make that change it doesn’t let me login to the CP.

  • #14 / Aug 04, 2010 3:11pm

    carvingCode

    380 posts

    err… Can someone point me to the docs on this?  (admin_session_type)  Haven’t seen it before.  Thanks.

  • #15 / Aug 04, 2010 5:04pm

    Ingmar

    29245 posts

    Practically all the old config.php values despite having been moved to the db continue to work as overrides.

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

ExpressionEngine News!

#eecms, #events, #releases