Dave Rolsky > MasonX-Request-WithApacheSession-0.30 > MasonX::Request::WithMultiSession

Download:
MasonX-Request-WithApacheSession-0.30.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: MasonX-Request-WithApacheSession-0.31

NAME ^

MasonX::Request::WithMultiSession - Multiple sub-sessions within one "parent" session

SYNOPSIS ^

  PerlSetVar  MasonRequestClass  MasonX::Request::WithMultiSession

DESCRIPTION ^

This module subclasses MasonX::Request::WithApacheSession in order to allow multiple "sub-sessions" to exist within one parent session.

This can be quite useful for a web app where you want to allow the user to open multiple windows, each with a different session, but session ids are stored in a cookie.

Like MasonX::Request::WithApacheSession, sub-sessions are shared between a request and any subrequests it creates.

METHODS ^

This class has an interface quite similar to that of MasonX::Request::WithApacheSession.

Parameters

This module takes two parameters besides those inherited from MasonX::Request::WithApacheSession:

USAGE ^

You will need to manually set the sub-session id argument parameter for each request. The easiest way to do this is to make sure that all URLs contain the sub-session id. This can be done by using a <%filter> block in a top-level autohandler (although this won't catch redirects), or by making sure all URLs are generated by a single component/function.

SUPPORT ^

Bug reports and requests for help should be sent to the mason-users list. See http://www.masonhq.com/resources/mailing_lists.html for more details.

AUTHOR ^

Dave Rolsky, <autarch@urth.org>

Development funded by Marigold Technologies.

SEE ALSO ^

HTML::Mason

syntax highlighting: