-
-
17 Apr 2008 12:35:48 UTC
- Distribution: Egg-Plugin-SessionKit
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (2 / 2 / 1)
- Kwalitee
Bus factor: 0- % Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (40.47KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Masatoshi Mizuno E<lt>lusheE<64>cpan.orgE<gt>
NAME
Egg::Model::Session::Bind::Cookie - The client and the session are related by using Cookie.
SYNOPSIS
package MyApp::Model::Session::MySession; ............ ..... __PACKAGE__->config( cookie => { ........ ... }, ); __PACKAGE__->startup qw/ Bind::Cookie ........ ... /;
DESCRIPTION
It is a component module to relate the client and the session by using Cookie.
It uses it specifying 'Bind::Cookie' for 'startup'.
This component can be used by the default of the module generated with Egg::Helper::Model::Session.
CONFIGURATION
It sets it to config of the session component module with 'cookie' key.
__PACKAGE__->config( cookie => { name => 'ss', path => '/', domain => 'mydomain.name', expires => '+M', secure => 1, }, );
As for a set item, all cookie method of Egg::Response is passed.
METHODS
get_bind_data
Session ID is received and returned from Cookie of the client.
Config->{paran_name} or cookie->{cookie}{name} is used for the key to the cookie.
This method is called from 'accept_session_id' of Egg::Model::Session::Manager::TieHash.
set_bind_data
It is prepared to send the client Cookie.
This method is called from 'Close' method of Egg::Model::Session::Manager::TieHash or 'output_session_id' method.
SEE ALSO
Egg::Release, Egg::Model::Session::Manager::TieHash, Egg::Response,
AUTHOR
Masatoshi Mizuno <lushe@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
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.
Module Install Instructions
To install Egg::Plugin::SessionKit, copy and paste the appropriate command in to your terminal.
cpanm Egg::Plugin::SessionKit
perl -MCPAN -e shell install Egg::Plugin::SessionKit
For more information on module installation, please visit the detailed CPAN module installation guide.