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

authentication across subdomains

Discussion in 'XenForo Development Discussions' started by eriche, Jan 8, 2015.

  1. eriche

    eriche Member

    Hello,

    I have following situation, my project will look like following

    forum.domain.com (PHP Xenforo)
    asp.domain.com (ASP.net own project)​

    I would like now that Xenforo is the master for creating an account.

    But then the user should be able to use both platform with 1 Login.
    Doesn`t matter if they login at the Xenforo and change to the ASP subdomain or vice versa. :sneaky:

    Does anybody know how such a mechanism has to look like?
    Is this possible at all :confused:

    Erich
     
  2. Optic

    Optic Well-Known Member

    xfrocks likes this.
  3. euantor

    euantor Well-Known Member

    Should be possible. You'll have to make sure the cookies are set to the right domain and path, something like:

    Code:
    Domain: .domain.com
    Path: /
    
    Then you just need to have ASP.NET read the cookie and look up sessions correctly, which shouldn't be too difficult.
     
  4. eriche

    eriche Member

    I will give it a try - when it should be more difficult over subdomains, I could change it also to one.

    If somebody alrady has done something similar, please tell me.
    I think it would be freaking awesome if we could use the Xenforo Session to authentify in other plattform or systems too ;)

    Erich
     

Share This Page