Php website sharing session method (same level-1 domain name) during this period of time for web development, the php language is required to achieve the entry from the main site to the sub-site without the need to log on again (such as logged on) use memcache to modify php as follows. ini: add extension = php_memcache.dll in php. add php website sharing session method in ini (same Level 1 domain name)
During this period of time, web development uses the php language to enable logon (for example, login is not required) when the main site enters the sub-site)
The implementation of memcache is as follows:
Modify php. ini as follows:
Add
Extension = php_memcache.dll
Add the following configuration in php. ini:
Session. save_handler = memcache
Session. save_path = tcp: // 192.168.1.240: 11211
Session. cookie_domain = xxx.com
This enables session sharing between multiple sub-sites and the master site.