Egg::Model::Session::Plugin::AgreeAgent - Plugin for session that confirms agreement of HTTP_USER_AGENT.


Egg-Plugin-SessionKit documentation  | view source Contained in the Egg-Plugin-SessionKit distribution.

Index


NAME

Top

Egg::Model::Session::Plugin::AgreeAgent - Plugin for session that confirms agreement of HTTP_USER_AGENT.

SYNOPSIS

Top

  package MyApp::Model::Sesion::MySession;

  __PACKAGE__->startup(
   .....
   Plugin::AgreeAgent
   );

DESCRIPTION

Top

When environment variable 'HTTP_USER_AGENT' is not completely corresponding, it is a plugin for the session to treat as another session.

HTTP_USER_AGENT at that time is preserved when a new session is opened, and the agreement of the HTTP_USER_AGENT will be confirmed next time.

To use it, 'Plugin::AgreeAgent' is added to 'startup'.

At this time, 'init_session' is done in override, and note the competition with other components, please.

METHODS

Top

init_session

HTTP_USER_AGENT before in agreement with begins a new session when it is not.

SEE ALSO

Top

Egg::Release, Egg::Model::Session::Manager::TieHash,

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT AND LICENSE

Top


Egg-Plugin-SessionKit documentation  | view source Contained in the Egg-Plugin-SessionKit distribution.