| OpenFrame-WebApp documentation | Contained in the OpenFrame-WebApp distribution. |
OpenFrame::WebApp::Segment::Session::Saver - pipeline segment to save sessions
# installed automatically in cleanup pipeline # by OpenFrame::WebApp::Segment::Session::Loader
The OpenFrame::WebApp::Segment::Session::Saver is a session saving segment.
It inherits its interface from Pipeline::Segment.
On dispatch() the session stored.
set/get the OpenFrame::WebApp::Session object.
dispatch this segment.
Steve Purkis <spurkis@epn.nu>
Based on OpenFrame::AppKit::Segment::SessionLoader, by James A. Duncan
Copyright (c) 2003 Steve Purkis. All rights reserved. Released under the same license as Perl itself.
| OpenFrame-WebApp documentation | Contained in the OpenFrame-WebApp distribution. |
package OpenFrame::WebApp::Segment::Session::Saver; use strict; use warnings::register; our $VERSION = (split(/ /, '$Revision: 1.2 $'))[1]; use base qw( Pipeline::Segment ); sub session { my $self = shift; if (@_) { $self->{session} = shift; return $self; } else { return $self->{session}; } } sub dispatch { my $self = shift; $self->session->store(); } 1; __END__