All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xitrum.scope.session.SessionStore.scala Maven / Gradle / Ivy

There is a newer version: 3.28.18
Show newest version
package xitrum.scope.session

trait SessionStore {
  def start()
  def stop()

  /**
   * Called before the response is sent to the client, but only if "restore" has
   * been called. If called, "store" is always called after "restore".
   *
   * If session is empty:
   * - If browser did not send session cookie: do nothing, do not send back useless cookie
   * - If browser did send session cookie: set max age to 0 to make browser delete session cookie immediately
   */
  def store(session: Session, env: SessionEnv)

  /**
   * Called only at the first access to the session. If session is not used,
   * no proccessing is performed. If called, "restore" is always called before "store".
   */
  def restore(env: SessionEnv): Session
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy