1. redis
# 在php.ini中修改session.save_handler = redissession.save_path = "tcp://127.0.0.1:6379"#或在项目中修改ini_set('session.save_handler', 'redis');ini_set('session.save_path', 'tcp://127.0.0.1:6379');
2. memcache
# 在php.ini中修改session.save_handler = memcachesession.save_path = "tcp://127.0.0.1:11211"#或在项目中修改ini_set('session.save_handler', 'memcache');ini_set('session.save_path', 'tcp://127.0.0.1:11211');