Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session和cookie的区别 #10

Open
Pieces312 opened this issue Sep 21, 2020 · 0 comments
Open

Session和cookie的区别 #10

Pieces312 opened this issue Sep 21, 2020 · 0 comments

Comments

@Pieces312
Copy link
Owner

Pieces312 commented Sep 21, 2020

Session是在服务器保存一个数据结构(可以是任意数据),用于跟踪用户的状态;Cookie(只能保存字符串)是客户端保存用户信息的一种机制,用来记录用户信息,也是session的一种实现方式。但cookie不是很安全,容易被别人分析出来并进行cookie欺骗。

文章链接:https://juejin.im/post/6844903575684907016
https://www.juejin.im/post/6844903864810864647#heading-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant