Home >Backend Development >PHP Tutorial >thinkphp如何设置session失效时间,比如现在系统默认失效时间是30分钟,想该成1秒就失效。怎么操作?

thinkphp如何设置session失效时间,比如现在系统默认失效时间是30分钟,想该成1秒就失效。怎么操作?

WBOY
WBOYOriginal
2016-06-06 20:21:322080browse

thinkphp如何设置session失效时间,比如现在系统默认失效时间是30分钟,想该成1秒就失效。怎么操作?

回复内容:

thinkphp如何设置session失效时间,比如现在系统默认失效时间是30分钟,想该成1秒就失效。怎么操作?

手册上有啊,session(array('name'=>'session_id','expire'=>3600));

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