Re: session
| From: | Chris | Date: | Sat, 22 Jul 2006 02:40:07 +0000 |
| Subject: | Re: session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239696@lists.php.net to get a copy of this message | ||
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.