Home > Backend Development > PHP Tutorial > 应该怎么处理 RESTful 应用中的 session ?

应该怎么处理 RESTful 应用中的 session ?

WBOY
Release: 2016-06-17 08:31:30
Original
1391 people have browsed it

回复内容:

实际上不应该有传统意义的session才对
http协议是无状态的,可以通过传递token(access_token)等来进行用户身份的验证,而不应该有会话的概念。 token可以保存在cookie上
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