This topic created in 4164 days ago, the information mentioned may be changed or developed.
框架为Yii,php.ini中session相关配置已配好,开发环境win测试没问题,linux单机测试环境也没问题。唯独线上环境session无法写入memcache。
在线上环境中,写session的方法中同时另外给memcache中set一个值,在其他方法中,可获取该值,但无法通过sessionid获取session。
线上环境配置了负载均衡,本机改了hosts指定了一台服务器的IP,memcache服务器只有一台。
难道只能自定义session类了么?