public class SmartHttpSessionResolver extends Object implements org.springframework.session.web.http.HttpSessionIdResolver
| 构造器和说明 |
|---|
SmartHttpSessionResolver(boolean cookieFirst,
String cookiePath) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
expireSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Instruct the client to end the current session.
|
List<String> |
resolveSessionIds(javax.servlet.http.HttpServletRequest request)
Resolve the session ids associated with the provided
HttpServletRequest. |
void |
setSessionId(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String sessionId)
Send the given session id to the client.
|
public SmartHttpSessionResolver(boolean cookieFirst,
String cookiePath)
public List<String> resolveSessionIds(javax.servlet.http.HttpServletRequest request)
HttpServletRequest.
For example, the session id might come from a cookie or a request header.resolveSessionIds 在接口中 org.springframework.session.web.http.HttpSessionIdResolverrequest - the current requestpublic void setSessionId(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String sessionId)
setSessionId 在接口中 org.springframework.session.web.http.HttpSessionIdResolverrequest - the current requestresponse - the current responsesessionId - the session idpublic void expireSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
expireSession 在接口中 org.springframework.session.web.http.HttpSessionIdResolverrequest - the current requestresponse - the current responseCopyright © 2019 江苏南大先腾信息产业股份有限公司. All rights reserved.