The following code sets the session cookie as follow:
ini_set( 'session.cookie_domain', 'mysite.com' );
- FF header - domain=.mysite.com
- IE header - domain=mysite.com (no initial dot)
- Cr header - domain=.mysite.com
The following code sets the session cookie as follow:
ini_set( 'session.cookie_domain', 'dev.mysite.com' );
- FF - domain=.dev.mysite.com (works)
- IE - domain=mysite.com (ignores subdomain; uses root domain, no initial dot)
- Cr - failed to create session
Trying to set the Session cookie to a particular subdomain, so that sub1.dev.mysite.com, sub2.dev.mysite.com could access the same Session cookie. But, it only works with FF.
Set session name to something like SESS_NAME.