raxx_session v0.2.4 Raxx.Session.SignedCookie

Stores the session in a signed cookie.

Note: the contents of the cookie can be viewed by the client, an encrypted cookie store must be used to hide data from client. See Raxx.Session.EncryptedCookie.

This module is not normally used directly. Instead see Raxx.Session and use this module as the :store option.

Options

  • :secret_key_base - used to generate the signing key
  • :salt - a salt used with secret_key_base to generate a key for signing/verifying a cookie.

TODO support key generation options, currently sensible defaults are used.

Link to this section Summary

Link to this section Functions

Link to this function

config(options)

Link to this function

fetch(session_string, config)

Link to this function

put(session, config)