Http4sCacheSessionStore

org.pac4j.http4s.Http4sCacheSessionStore
class Http4sCacheSessionStore[F[_]](maxAge: Option[Int], domain: Option[String], path: Option[String], secure: Boolean, httpOnly: Boolean, sameSite: Option[SameSite])(implicit evidence$1: Sync[F]) extends SessionStore

Http4sCacheSessionStore is an in memory session implementation.

The cookie will just contain an id and the session data is kept server side in cache.

Note that as cache is a simple Map, if multiple web servers are running sticky sessions will be required for this to work.

Value parameters

domain

Domain cookie attribute

httpOnly

HttpOnly cookie attribute

maxAge

Max-Age cookie attribute

path

Path cookie attribute

secure

Secure cookie attribute

Attributes

Deprecated
[Since version 4.4.0]
Graph
Supertypes
trait SessionStore
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def buildFromTrackableSession(context: WebContext, trackableSession: Any): Optional[SessionStore]

Attributes

Definition Classes
SessionStore
override def destroySession(context: WebContext): Boolean

Attributes

Definition Classes
SessionStore
override def get(context: WebContext, key: String): Optional[AnyRef]

Attributes

Definition Classes
SessionStore
override def getSessionId(context: WebContext, createSession: Boolean): Optional[String]

Attributes

Definition Classes
SessionStore
override def getTrackableSession(context: WebContext): Optional[AnyRef]

Attributes

Definition Classes
SessionStore
override def renewSession(context: WebContext): Boolean

Attributes

Definition Classes
SessionStore
override def set(context: WebContext, key: String, value: AnyRef): Unit

Attributes

Definition Classes
SessionStore