On my web site I would like to have several sub-domains. Files that create context for a given sub-domain are stored in corresponding sub-directory.
Sometimes I nee
In PHP INI you can set the session domain to ".mysite.org" then you should be able to share the session between multiple domains. The relevant variable is:
session.cookie_domain
You can also set it inside your script with the session_set_cookie_params()
function.
Edit - I should note this only works if your subdomains are on the same server (which looks like they are).