Home  >  Article  >  Backend Development  >  thinkphp url_model 和session的问题

thinkphp url_model 和session的问题

WBOY
WBOYOriginal
2016-07-06 13:51:21885browse

有一个项目默认没配置url_model值,应该使用的是pathinfo模式,发现登陆之后到首页session值获取不到了,url_model改成3之后使用兼容模式就ok了,这是为什么呢? 而且还有个诡异的现象,url_model为1的时候火狐是可以正常访问项目的,谷歌ie啥的就不行

本地测试也是没问题的,服务器环境centos6.5,Nginx+apache

回复内容:

有一个项目默认没配置url_model值,应该使用的是pathinfo模式,发现登陆之后到首页session值获取不到了,url_model改成3之后使用兼容模式就ok了,这是为什么呢? 而且还有个诡异的现象,url_model为1的时候火狐是可以正常访问项目的,谷歌ie啥的就不行

本地测试也是没问题的,服务器环境centos6.5,Nginx+apache

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn