NAME

Egg::Model::Auth::Session::FileCache - Session management for AUTH component that uses Egg::Model::Session.

SYNOPSIS

package MyApp::Model::Auth::MyAuth;
..........

__PACKAGE__->config(
  sessionkit => {
    model_name       => 'session_model_name',
    auth_session_key => '___atuh_session_data',
    },
  );

__PACKAGE__->setup_session('SessionKit');

DESCRIPTION

An easy session function is offered to the AUTH component by Egg::Model::Session.

The setting of 'Sessionkit' is added to the configuration to use it and 'SessionKit' is set by 'setup_session' method.

It is Egg::Model::Auth::Session::FileCache and there is not building in a necessary Bind system component needing. The string putting with the client is left to Egg::Model::Session.

If Egg::Model::Session is not set up, the exception is generated.

CONFIGURATION

model_name

Label name of Egg::Model::Session to receive session data.

auth_session_key

Name of key to preserve attestation data in data received from Egg::Model::Session.

Default is '___atuh_session_data'.

METHODS

session

The controller object of Egg::Model::Session is returned.

get_session ([SESSION_ID])

The session data corresponding to SESSION_ID is returned.

set_session ([SESSION_DATA_HASH], [SESSION_ID])

The session data is preserved.

remove_session ([SESSION_ID])

The session data corresponding to SESSION_ID is annulled.

SEE ALSO

Egg::Release, Egg::Model::Auth, Egg::Model::Session,

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.