Home  >  Article  >  Backend Development  >  thinkphp, 在模块中的方法间跳转后session值会被清空是为何?如何解决

thinkphp, 在模块中的方法间跳转后session值会被清空是为何?如何解决

WBOY
WBOYOriginal
2016-06-13 11:14:011331browse

thinkphp, 在模块中的方法间跳转后session值会被清空是为何?怎么解决?
thinkphp, 在模块中的方法间跳转后session值会被清空是为何?怎么解决?
我在做一个登陆的功能,在登陆前判断session的某个值是否为空,若为空则还跳转到登陆页面,若不为空则进入到下一个页面当中。但是在跳转后session值就无故被清空了是怎么回事?该怎么解决撒?

session thinkphp
------解决方案--------------------
thinkphp 提供了自己的 session 处理方法,请使用
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