case class SessionConfiguration(cookieName: String = "PLAY_SESSION", secure: Boolean = false, maxAge: Option[FiniteDuration] = None, httpOnly: Boolean = true, domain: Option[String] = None, path: String = "/", sameSite: Option[SameSite] = Some(SameSite.Lax), jwt: JWTConfiguration = JWTConfiguration()) extends Product with Serializable
The session configuration
- cookieName
The name of the cookie used to store the session
- secure
Whether the session cookie should set the secure flag or not
- maxAge
The max age of the session, none, use "session" sessions
- httpOnly
Whether the HTTP only attribute of the cookie should be set
- domain
The domain to set for the session cookie, if defined
- path
The path for which this cookie is valid
- sameSite
The cookie's SameSite attribute
- jwt
The JWT specific information
- Source
- HttpConfiguration.scala
- Alphabetic
- By Inheritance
- SessionConfiguration
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
SessionConfiguration(cookieName: String = "PLAY_SESSION", secure: Boolean = false, maxAge: Option[FiniteDuration] = None, httpOnly: Boolean = true, domain: Option[String] = None, path: String = "/", sameSite: Option[SameSite] = Some(SameSite.Lax), jwt: JWTConfiguration = JWTConfiguration())
- cookieName
The name of the cookie used to store the session
- secure
Whether the session cookie should set the secure flag or not
- maxAge
The max age of the session, none, use "session" sessions
- httpOnly
Whether the HTTP only attribute of the cookie should be set
- domain
The domain to set for the session cookie, if defined
- path
The path for which this cookie is valid
- sameSite
The cookie's SameSite attribute
- jwt
The JWT specific information
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val cookieName: String
- val domain: Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val httpOnly: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val jwt: JWTConfiguration
- val maxAge: Option[FiniteDuration]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val path: String
- val sameSite: Option[SameSite]
- val secure: Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )