Home >Backend Development >PHP Tutorial >关于SESSION 时间的有关问题,请大牛解释一上

关于SESSION 时间的有关问题,请大牛解释一上

WBOY
WBOYOriginal
2016-06-13 11:11:10789browse

关于SESSION 时间的问题,请大牛解释一下
我一个页面用: 

session_cache_expire(1);

另外一个页面用:
session_get_cookie_params();

但是得出的结果:

Array ( [lifetime] => 0 [path] => / [domain] => [secure] => [httponly] => ) ) 

lifetime 这里怎么总是0 ?

即 session_cache_expire(1); 没起作用,我想限制 session 过期时间在 30 分钟之内!


------解决方案--------------------
http://www.laruence.com/2012/01/10/2469.html
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