OpenFrame::WebApp::Segment::Session::Loader - abstract pipeline segment to load sessions
# abstract class - cannot be used directly use Pipeline; use OpenFrame::WebApp; my $pipe = new Pipeline; my $sfactory = new OpenFrame::WebApp::Session::Factory()->type('mem_cache'); $pipe->store->set( $sfactory ); # abstract - must use a sub-class: my $sloader = new OpenFrame::WebApp::Segment::Session::CookieLoader; $pipe->add_segment( $sloader ); ... $pipe->dispatch;
The OpenFrame::WebApp::Segment::Session::Loader class is an abstract session loading segment. It inherits its interface from Pipeline::Segment.
OpenFrame::WebApp::Segment::Session::Loader
Pipeline::Segment
On dispatch() a session is fetched or created using the Pipeline's stored OpenFrame::WebApp::Session::Factory, and a new OpenFrame::WebApp::Segment::Session::Saver object is added to the cleanup pipeline so that any modifications to the session will be saved for the next request.
OpenFrame::WebApp::Session::Factory
OpenFrame::WebApp::Segment::Session::Saver
dispatch this segment.
looks for session id with find_session_id(), and creates/fetches the session using OpenFrame::WebApp::Session::Factory.
returns a new OpenFrame::WebApp::Segment::Session::Saver object for this $session.
abstract method for finding the session id.
Steve Purkis <spurkis@epn.nu>
Based on OpenFrame::AppKit::Segment::SessionLoader, by James A. Duncan
OpenFrame::AppKit::Segment::SessionLoader
Copyright (c) 2003 Steve Purkis. All rights reserved. Released under the same license as Perl itself.
Pipeline::Segment, OpenFrame::WebApp::Session, OpenFrame::WebApp::Segment::Session::Saver, OpenFrame::WebApp::Segment::Session::CookieLoader
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install OpenFrame::WebApp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenFrame::WebApp
CPAN shell
perl -MCPAN -e shell install OpenFrame::WebApp
For more information on module installation, please visit the detailed CPAN module installation guide.