trait SessionDirectives extends OneOffSessionDirectives with RefreshableSessionDirectives

Manages cookie-based sessions with optional refresh tokens. A refresh token is written to a separate cookie.

Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SessionDirectives
  2. RefreshableSessionDirectives
  3. OneOffSessionDirectives
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def invalidateSession[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive0

    Invalidate the session cookie.

    Invalidate the session cookie.

    If refreshable, also removes the refresh token cookie and the refresh token token (from the client and token store), if present.

    Note that you should use refreshable if you use refreshable systems even only for some users.

  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def optionalSession[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive1[Option[T]]

    Read an optional session from the session cookie.

  16. def requiredSession[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive1[T]

    Read a required session from the session cookie.

  17. def session[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive1[SessionResult[T]]

    Read a session from the session cookie, wrapped in SessionResult describing the possible success/failure outcomes.

    Read a session from the session cookie, wrapped in SessionResult describing the possible success/failure outcomes.

    If refreshable, tries to create a new session based on the refresh token cookie.

  18. def setSession[T](sc: SessionContinuity[T], st: SetSessionTransport, v: T): Directive0

    Set the session cookie with the session content.

    Set the session cookie with the session content. The content is signed, optionally encrypted and with an optional expiry date.

    If refreshable, generates a new token (removing old ones) and stores it in the refresh token cookie.

  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. def touchOptionalSession[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive1[Option[T]]

    Sets the session cookie again with the same data.

    Sets the session cookie again with the same data. Useful when using the SessionConfig.sessionMaxAgeSeconds option, as it sets the expiry date anew.

  22. def touchRequiredSession[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive1[T]

    Sets the session cookie again with the same data.

    Sets the session cookie again with the same data. Useful when using the SessionConfig.sessionMaxAgeSeconds option, as it sets the expiry date anew.

  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped