| Egg-Plugin-SessionKit documentation | Contained in the Egg-Plugin-SessionKit distribution. |
Egg::Model::Session::ID::IPaddr - Internet Protocol address is used for session ID.
package MyApp::Model::Sesion; __PACKAGE__->startup( ..... ID::IPaddr );
It is a component module to use Internet Protocol address for session ID.
It uses it specifying 'IP::IPAddr' for 'startup'.
The connected client is thing accessed by different Internet Protocol address at the connection in the ISP contract.
Therefore, please note that there is a possibility of sharing utter stranger's session.
We will recommend the thing used using it together with the following plugins.
Egg::Model::Session::Plugin::AbsoluteIP, Egg::Model::Session::Plugin::AgreeAgent, Egg::Model::Session::Plugin::CclassIP,
The result of $e->request->address is returned.
The result of $e->request->address is returned.
Nothing is done.
Masatoshi Mizuno <lushe&64;cpan.org>
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.
| Egg-Plugin-SessionKit documentation | Contained in the Egg-Plugin-SessionKit distribution. |
package Egg::Model::Session::ID::IPaddr; # # Masatoshi Mizuno E<lt>lusheE<64>cpan.orgE<gt> # # $Id: IPaddr.pm 256 2008-02-14 21:07:38Z lushe $ # use strict; use warnings; our $VERSION= '0.01'; sub make_session_id { $_[0]->e->request->address } sub get_bind_data { $_[0]->e->request->address } sub set_bind_data { 1 } 1; __END__