类 CookieSessionIdResolver

java.lang.Object
cn.taketoday.session.CookieSessionIdResolver
所有已实现的接口:
SessionIdResolver

public class CookieSessionIdResolver extends Object implements SessionIdResolver
A SessionIdResolver that uses a cookie to obtain the session from.
 HTTP/1.1 200 OK
 Set-Cookie: SESSION=f81d4fae-7dec-11d0-a765-00a0c91e6bf6; Path=/context-root; Secure; HttpOnly
 
The client should now include the session in each request by specifying the same cookie in their request. For example:
 GET /messages/ HTTP/1.1
 Host: example.com
 Cookie: SESSION=f81d4fae-7dec-11d0-a765-00a0c91e6bf6
 
When the session is invalidated, the server will send an HTTP response that expires the cookie. For example:
 HTTP/1.1 200 OK
 Set-Cookie: SESSION=; Expires=Thur, 1 Jan 1970 00:00:00 GMT; Secure; HttpOnly
 
从以下版本开始:
2019-10-03 10:56
作者:
Harry Yang