By default it will give you a new session id. You can set the domain of your session cookie to ".domain.com" and it will be passed and read by both.

I beleive the php.ini option is session.cookie_domain, check your ini file, it should be in there.

Chris

João Cândido de Souza Neto wrote:
I´ve got a big doubt abaout sessions and if someone help me in it, i´ll turn very happy.

When i get in e.g. http://www.domain.com and it uses session, a session id will be generated and it´ll be used in whole site.

My doubt is: if i´ve got a link that send to http://subdomain.domain.com in a new browser´s window it´ll give me a new session id or it´ll use the same session id that was created before?

Thanks a lot.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

  • [PHP] session Jo�o C�ndido de Souza Neto
    • Re: [PHP] session Chris

Reply via email to