The following code sets the session cookie as follow:
ini_set( 'session.cookie_domain', 'mysite.com' );
The following code sets the session cookie as follow:
ini_set( 'session.cookie_domain', 'dev.mysite.com' );
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.
Interesting, I found that Chrome does not like underscore. SESS_NAME vs SESSNAME.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.