1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 No login possible after domain migration

Discussion in 'Troubleshooting and Problems' started by WSM_TechMedia, Dec 4, 2015.

  1. WSM_TechMedia

    WSM_TechMedia Member


    I migrated my forum from somedomain.xyz/forum to a dedicated domain: www.somedomain-forum.xyz.
    The database as well as the webroot remained the same, just the domain changed.

    I changed the cookie domain to ".somedomain-forum.xyz" in library/config.php.
    I changed the xf_option "boardUrl" to http://www.somedomain-forum.xyz via the database.

    The problem now is that I cannot login via front- and backend (/admin.php) as the root user.
    If I use the same credentials at somedomain.xyz/forum/admin.php the login is possible.
    However I don't get an error during the login process, I just don't get a session just as if the forum sends a cookie for the wrong domain.

    Is there anything else I need to change?
    Thanks for your advice!
  2. Mike

    Mike XenForo Developer Staff Member

    I would test with an incognito window just in case. If that resolves that, it could indicate some other sort of cookie conflict (particularly if you set cookies before changing the cookie params).

    Normally, I would suggest not setting any cookie domain unless you have a particular need for them to be set differently.

    However, looking at your site, I see some Varnish references. This might be relevant (pages being served from cache).
  3. WSM_TechMedia

    WSM_TechMedia Member

    in fact it was a caching issue. thanks for your support. case closed ;)

Share This Page