Hi I have sub domains on my site and i wanted to use one session across subdomains but i can't.. I am using following code but it's not working Can anyone tell what's the reason?? Here is my code: session_set_cookie_params(3600,'/','.domain.com'); PHP:
dizyn, your code is correct. It should work. I'm not sure where did you put session_start but it should have been as follows... session_set_cookie_params(3600, '/', '.domain.com'); session_start(); PHP:
hmmmm ... maybe u can create one file php as key to manage session then just include this file in all subdomain using absolute path (maybe relative?) regards