Egg::Model::Auth::Bind::Cookie - AUTH component that treats session ID.


Egg-Release-Authorize documentation  | view source Contained in the Egg-Release-Authorize distribution.

Index


NAME

Top

Egg::Model::Auth::Bind::Cookie - AUTH component that treats session ID.

SYNOPSIS

Top

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

  __PACKAGE__->config(
    cookie => {
      name    => 'auth_session',
      path    => '/',
      domain  => 'mydomain.name',
      expires => '+1d',
      secure  => 1,
      },
    );

  __PACKAGE__->setup_session( FileCache => qw/ Bind::Cookie / );

DESCRIPTION

Top

It relates by Cookie with the client of session ID.

'Bind::Cookie' is included in the list following the session name that adds the setting of 'cookie' to the configuration to use it and sets it by 'setup_session' method.

   __PACKAGE__->setup_session( FileCache => qw/ Bind::Cookie / );

It is not significant with the session module that doesn't need Bind system component even if it uses it. Please note the return and becoming an unhappy rate.

The content of 'cookie' set by the configuration is a parameter passed to 'cookie' method of Egg::Response.

METHODS

Top

SEE ALSO

Top

Egg::Release, Egg::Model::Auth, Egg::Model::Auth::Session::FileCache, Egg::Response,

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT AND LICENSE

Top


Egg-Release-Authorize documentation  | view source Contained in the Egg-Release-Authorize distribution.