Home  >  Article  >  Backend Development  >  PHP接口如何加session 设置有效时间 过期登录失效

PHP接口如何加session 设置有效时间 过期登录失效

WBOY
WBOYOriginal
2016-06-13 12:27:101166browse

PHP接口怎么加session 设置有效时间 过期登录失效
怎么实现php接口 session 入库 且定时覆盖session 求代码示例
------解决思路----------------------
开启session后是会自动有session id的,你要你的客户端携带这个session来访问即可
------解决思路----------------------
过期失效,可以设置 session_id  的cookie 失效时间

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