Contentment::Session - Session management for Contentment
This is a session management module specifically designed for Contentment.
This class adds the following context methods:
- $session_data = $context->session
This method returns a reference to a hash containing the session data.
- $session_id = $context->session_id
This method returns a reference to the session ID.
This class defines the following hook handlers:
Deploys the session class into the database.
This handles the "Contentment::Request::begin" hook. It associates session information with the context and calles the "Contentment::Session::begin" hook.
This handles the "Contentment::Response::begin" hook and is responsible for making sure a cookie gets set on the client.
This method handles the "Contentment::Request::end" hook. It calls the "Contentment::Session::end" hook and then serializes any changes to the session data.
This class defines and uses the following hooks:
This hook is called as soon as the session information has been added to the context. Handlers of this hook can expect a single argument: the current context object.
This hook can be used to perform additional loading or other session data modifications.
This hook is called immediately before the session information is saved. Handlers of this hook can expect a single argument: the current context object.
This hook can be used to prepare data for serialization, sanitize session data, or perform other session data modifications prior to saving.
Andrew Sterling Hanenkamp, <email@example.com>
Copyright 2005 Andrew Sterling Hanenkamp. All Rights Reserved.
Contentment is distributed and licensed under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 77:
'=item' outside of any '=over'