package HTTP::Session::State::GUID; use strict; use warnings; use base qw/HTTP::Session::State::MobileAttributeID/; use HTML::StickyQuery::DoCoMoGUID; use HTTP::Session::State::Mixin::ResponseFilter qw/response_filter/; sub html_filter { my ($self, $session_id, $html) = @_; Carp::croak "missing session_id" unless $session_id; my $sticky = HTML::StickyQuery::DoCoMoGUID->new; return $sticky->sticky( scalarref => \$html, ); } sub redirect_filter { my ( $self, $session_id, $path ) = @_; Carp::croak "missing session_id" unless $session_id; my $uri = URI->new($path); $uri->query_form( $uri->query_form, guid => 'ON' ); return $uri->as_string; } 1; __END__ =head1 NAME HTTP::Session::State::GUID - (DEPRECATED) =head1 SYNOPSIS HTTP::Session->new( state => HTTP::Session::State::GUID->new( mobile_attribute => HTTP::MobileAttribute->new($r), ), store => ..., request => ..., ); =head1 DESCRIPTION Maintain session IDs using mobile phone's unique id B =head1 CONFIGURATION =over 4 =item mobile_attribute instance of L =item check_ip check the IP address in the carrier's cidr/ or not? see also L =back =head1 METHODS =over 4 =item get_session_id =item response_filter for internal use only =back =head1 SEE ALSO L, L