open class CookieWebSessionIdResolver : WebSessionIdResolver
Cookie-based WebSessionIdResolver.
Author
Rossen Stoyanchev
Since
5.0
CookieWebSessionIdResolver()
Cookie-based WebSessionIdResolver. |
open fun expireSession(exchange: ServerWebExchange): Unit |
|
open fun getCookieMaxAge(): Duration
Return the configured "Max-Age" attribute value for the session cookie. |
|
open fun getCookieName(): String
Return the configured cookie name. |
|
open fun resolveSessionIds(exchange: ServerWebExchange): MutableList<String> |
|
open fun setCookieMaxAge(maxAge: Duration): Unit
Set the value for the "Max-Age" attribute of the cookie that holds the session id. For the range of values see By default set to -1. |
|
open fun setCookieName(cookieName: String): Unit
Set the name of the cookie to use for the session id. By default set to "SESSION". |
|
open fun setSessionId(exchange: ServerWebExchange, id: String): Unit |