is it possible to configure session on subdomain?

ArafatVai

Member
Registered
Joined
Jul 27, 2020
Messages
17
Points
23

Reputation:

hello,

suppose I have installed xenforo on the main domain

when i login on to main domain it redirects me to another subdomain after login when i logout it auto redirects me to main domain again

why i want to do this? because some google ads are blocked on main domain thats why i want to configure session on subdomain to show ads on subdomain main page.


i found some info on this docs but not sure how to actually make it work.
https://xenforo.com/xf2-docs/manual/config/#cookie-settings

https://xenforo.com/community/threads/login-to-xf2-on-different-subdomian-via-php.178495/

do you have any idea? or any sample code ? how to setup this?
 
Last edited:
Top