authentication across subdomains

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
 
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.
 
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
 
Back
Top Bottom