Page 1 of 1

session management issue

Posted: Mon Jun 02, 2008 5:32 am
by itsmani1
For session purpose I am using
session_set_cookie_params(3600, '/', '.mydomain.com');

I have a domain http://www.mydomain.com and also have 2 sub domains test.mydomain.com test1.mydomain.com

I want to carry session between all sections of the website.

when i login on http://www.mydomain.com/login.php it works fine on this but when i move to test.mydoamin.com i can't access session there.

any help?

thank you

Re: session management issue

Posted: Mon Jun 02, 2008 12:02 pm
by Christopher
Have you read the user notes on the manual page?

http://us2.php.net/manual/en/function.s ... params.php

Re: session management issue

Posted: Tue Jun 03, 2008 12:45 am
by itsmani1
yes i read this and thought of

Code: Select all

session_set_cookie_params(3600, '/', '.cmela.com');
session_start()
it works fine if site is accessed with www on FF and IE, but if try to access without www on IE it don't work.