session跨页面就失效,我疯了
加入购物车也不行,烦是用到session的都用不了
session的driver是redis,原以为是redis的问题,将driver换成cache也不行
看了同事用了docker的这些就可以,linux环境完全正常。
下面贴上我的phpinfo中session设置
session
Session Support enabled
Registered save handlers files user memcache
Registered serializer handlers php php_binary wddx
Directive Local Value Master Value
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path E:\UPUPW_NP5.4\temp E:\UPUPW_NP5.4\temp
session.serialize_handler php php
session.upload_progress.cleanup On On
session.upload_progress.enabled On On
session.upload_progress.freq 1% 1%
session.upload_progress.min_freq 1 1
session.upload_progress.name PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix upload_progress_ upload_progress_
session.use_cookies On On
session.use_only_cookies On On
session.use_trans_sid 1 1
有牛人指导一下吗?
回复内容:
windows环境,登陆输入正确的用户名,密码提示成功,然后准备跳到登陆后的页面,还是进不去,还是在登陆本身页面。
加入购物车也不行,烦是用到session的都用不了
session的driver是redis,原以为是redis的问题,将driver换成cache也不行
看了同事用了docker的这些就可以,linux环境完全正常。
下面贴上我的phpinfo中session设置
session
Session Support enabled
Registered save handlers files user memcache
Registered serializer handlers php php_binary wddx
Directive Local Value Master Value
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path E:\UPUPW_NP5.4\temp E:\UPUPW_NP5.4\temp
session.serialize_handler php php
session.upload_progress.cleanup On On
session.upload_progress.enabled On On
session.upload_progress.freq 1% 1%
session.upload_progress.min_freq 1 1
session.upload_progress.name PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix upload_progress_ upload_progress_
session.use_cookies On On
session.use_only_cookies On On
session.use_trans_sid 1 1
有牛人指导一下吗?
不妨把代码贴出来看看
跨域了?最好贴代码
或许,key不对→_→
session_start()
???
如果是我,我会浏览器查看一下network看看session的值是写入失败还是传输失败。
是不是跨域问题了? 之前也遇见过这个问题
上一篇: 数据库的插入,该怎么处理
下一篇: MySQL5.5各架构复制