package naboris

  1. Overview
  2. Docs

Less commonly used.

type 'sessionData t = {
  1. getSession : string option -> 'sessionData Session.t option Lwt.t;
  2. sidKey : string;
  3. maxAge : int;
  4. secret : string;
}
val sidKey : 'sessionData t option -> string

Returns key to be used for session cookies.

val maxAge : 'sessionData t option -> int

Returns max age to be used for session cookies.

val secret : 'sessionData t option -> string

Returns secret used to sign session id cookies.

OCaml

Innovation. Community. Security.