您的位置:首页 > 其它

Session and Cookie

2008-10-15 17:17 344 查看
HTTP is a stateless protocol, so we often use cookie or session to store the user’s data and state.
1. The main difference between cookies and sessions is that cookies are stored in the user's browser, and sessions are stored in the server side.
2. cookies are only simple text that is usually not over 4096 bytes. Sessions are objects (not text files) that store data.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: