httpssession和cookie的问题
1)session和cookie有什么区别。
我知道cookie存储在客户端,而session存储在服务器端。
但我想知道他们之间的关系是什么?
有人告诉我,有两种方法来实现会话:cookie 和 url-rewrite。所以我很困惑......
我已经阅读了这个问题的答案: 什么是-a-之间的差异session-and-a-cookie
2)session的生命周期怎么样。
它是什么时候创建的?每个http请求都会创建一个新的会话(假设request.setSession(true))?会议什么时候结束?我知道当浏览器关闭时会话将会超时。但是会话超时的确切含义是什么?
1)what is the difference of session and cookie.
I know the cookie is stored at client-side,and the session in server-side.
But I wonder what is the realation ship of them?
Someone tell me that there are two ways to implement the session:the cookie and the url-rewrite. so I am confused....
I have read the answer in this question:
what-is-the-difference-between-a-session-and-a-cookie
2)how about the life cycle of session.
When is it created? Does each http request will create a new session(suppose the request.setSession(true))? When does the session closed? I know the session will be timeout when the browser is closed. But what is the exactly meaning of the session timeout?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论