Sessions and Subdomains


I’m having a bit of trouble with maintaining sessions across my subdomain. I’ve tried to search for help on it but I’ve found nothing that seems to work. My site is running from, when i want to login I go to and log in. As a note, when i enter this address ‘www.’ gets automatically added to the url and I’m left with I log in and and everything executes as it should, the login is recorded to the active session and i get redirected back to the main page, However, when i check the session there is no record of the login.

I’m pretty sure that one session was created for and another for I’ve tried things like session_set_cookie_params(“86400”, “/”, “”); but this isn’t working, more than likely because I’m using it wrong.

Can anyone tell me what i should be doing?

Thanks for any help,


Sponsor our Newsletter | Privacy Policy | Terms of Service