Egg::Model::Session::ID::IPaddr - Internet Protocol address is used for session ID.


Egg-Plugin-SessionKit documentation Contained in the Egg-Plugin-SessionKit distribution.

Index


Code Index:

NAME

Top

Egg::Model::Session::ID::IPaddr - Internet Protocol address is used for session ID.

SYNOPSIS

Top

  package MyApp::Model::Sesion;

  __PACKAGE__->startup(
   .....
   ID::IPaddr
   );

DESCRIPTION

Top

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,

METHODS

Top

make_session_id

The result of $e->request->address is returned.

get_bind_data

The result of $e->request->address is returned.

set_bind_data

Nothing is done.

SEE ALSO

Top

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

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT AND LICENSE

Top


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__