The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MVC::Neaf::X::Session::Cookie - Stateless cookie-based session for Neaf

DESCRIPTION

Use this module as a session handler in a Neaf app.

METHODS

new( %options )

%options may include:

  • key (required) - a security key to prevent tampering with the cookie data. This should be the same throughout the application.

  • hmac_function - HMAC to be used, default is hmac_sha224_base64

store( $id, $data )

Create a cookie from $data hash. Given $id is ignored.

fetch

Restore session data from cookie.

get_session_id

Replaced by a stub - we'll generate ID from data anyway.