windows环境,登陆输入正确的用户名,密码提示成功,然后准备跳到登陆后的页面,还是进不去,还是在登陆本身页面。
加入购物车也不行,烦是用到session的都用不了
session的driver是redis,原以为是redis的问题,将driver换成cache也不行
看了同事用了docker的这些就可以,linux环境完全正常。
下面贴上我的phpinfo中session设置
<code>sessionSession Support enabledRegistered save handlers files user memcacheRegistered serializer handlers php php_binary wddxDirective Local Value Master Valuesession.auto_start Off Offsession.cache_expire 180 180session.cache_limiter nocache nocachesession.cookie_domain no value no valuesession.cookie_httponly Off Offsession.cookie_lifetime 0 0session.cookie_path / /session.cookie_secure Off Offsession.entropy_file no value no valuesession.entropy_length 0 0session.gc_divisor 1000 1000session.gc_maxlifetime 1440 1440session.gc_probability 1 1session.hash_bits_per_character 5 5session.hash_function 0 0session.name PHPSESSID PHPSESSIDsession.referer_check no value no valuesession.save_handler files filessession.save_path E:\UPUPW_NP5.4\temp E:\UPUPW_NP5.4\tempsession.serialize_handler php phpsession.upload_progress.cleanup On Onsession.upload_progress.enabled On Onsession.upload_progress.freq 1% 1%session.upload_progress.min_freq 1 1session.upload_progress.name PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESSsession.upload_progress.prefix upload_progress_ upload_progress_session.use_cookies On Onsession.use_only_cookies On Onsession.use_trans_sid 1 1有牛人指导一下吗?</code>
回复内容:
windows环境,登陆输入正确的用户名,密码提示成功,然后准备跳到登陆后的页面,还是进不去,还是在登陆本身页面。
加入购物车也不行,烦是用到session的都用不了
session的driver是redis,原以为是redis的问题,将driver换成cache也不行
看了同事用了docker的这些就可以,linux环境完全正常。
下面贴上我的phpinfo中session设置
<code>sessionSession Support enabledRegistered save handlers files user memcacheRegistered serializer handlers php php_binary wddxDirective Local Value Master Valuesession.auto_start Off Offsession.cache_expire 180 180session.cache_limiter nocache nocachesession.cookie_domain no value no valuesession.cookie_httponly Off Offsession.cookie_lifetime 0 0session.cookie_path / /session.cookie_secure Off Offsession.entropy_file no value no valuesession.entropy_length 0 0ses<mark style="color:transparent">来4源gaodaimacom搞#代%码*网</mark><code>搞代gaodaima码</code>sion.gc_divisor 1000 1000session.gc_maxlifetime 1440 1440session.gc_probability 1 1session.hash_bits_per_character 5 5session.hash_function 0 0session.name PHPSESSID PHPSESSIDsession.referer_check no value no valuesession.save_handler files filessession.save_path E:\UPUPW_NP5.4\temp E:\UPUPW_NP5.4\tempsession.serialize_handler php phpsession.upload_progress.cleanup On Onsession.upload_progress.enabled On Onsession.upload_progress.freq 1% 1%session.upload_progress.min_freq 1 1session.upload_progress.name PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESSsession.upload_progress.prefix upload_progress_ upload_progress_session.use_cookies On Onsession.use_only_cookies On Onsession.use_trans_sid 1 1有牛人指导一下吗?</code>
不妨把代码贴出来看看
跨域了?最好贴代码
或许,key不对→_→
session_start()
???
如果是我,我会浏览器查看一下network看看session的值是写入失败还是传输失败。
是不是跨域问题了? 之前也遇见过这个问题