开发者

problem of httpsession and cookie

开发者 https://www.devze.com 2023-01-26 08:01 出处:网络
1)what is the difference of session and cookie. Iknow the cookie is stored at client-side,and the session in server-side.

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(su开发者_高级运维ppose 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号