Uses of Class
io.karatelabs.http.Session
Packages that use Session
-
Uses of Session in io.karatelabs.http
Fields in io.karatelabs.http declared as SessionMethods in io.karatelabs.http that return SessionModifier and TypeMethodDescriptionSession.copy()FileSessionStore.create(int expirySeconds) InMemorySessionStore.create(int expirySeconds) SessionStore.create(int expirySeconds) Create a new session with the specified expiry time.ServerConfig.createSession()Create a new session using the configured session store.Retrieve a session by its ID.ServerMarkupContext.getSession()static SessionSession.inMemory()Methods in io.karatelabs.http with parameters of type SessionModifier and TypeMethodDescriptionstatic CsrfProtection.CsrfTokenCsrfProtection.createTemplateToken(Session session) Create a template-accessible object containing CSRF token information.static StringCsrfProtection.getOrCreateToken(Session session) Get or create a CSRF token for the given session.voidvoidvoidSave/update a session in the store.voidServerMarkupContext.setSession(Session session) static booleanCsrfProtection.validate(HttpRequest request, Session session) Validate a CSRF token from a request against the session token.