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

[CLOSED] Login on different subdomains

Discussion in 'XenForo Development Discussions' started by Bugfix, Jul 10, 2014.

  1. Bugfix

    Bugfix Member

    Hello!
    My site's URL is "www.mysite.com" - there I login to XF.
    Now, I want my users to visit "subdomain.mysite.com" - but I am logged out.
    Is there a way to tell XF that the login-cookie will work on any subdomain?
    Found that:
    http://xenforo.com/community/threads/xenforos-handing-of-cookie-domains.15260/
    and tried:
    Code:
    $config['cookie'] = array(
       'prefix' => 'xf_',
       'path' => '/',
       'domain' => '.mysite.com'
    );
    But after deleting my cookies and re-login nothing changed.
    Any help please?

    Best regards
    Harald
     
  2. Bugfix

    Bugfix Member

    Never mind, got it. :cool:
     

Share This Page