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

WBOY
Release: 2016-06-13 12:27:10
Original
1121 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!