Beau E. Cox > MasonX-Request-WithApacheSession2 > MasonX::Request::WithMultiSession2

Download:
MasonX-Request-WithApacheSession2-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

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

SYNOPSIS ^

  PerlSetVar  MasonRequestClass  MasonX::Request::WithMultiSession2

DESCRIPTION ^

MasonX::Request::WithMultiSession2 is highly experimental ( alpha ) and should only be used in a test environment.

MasonX::Request::WithMultiSession2 is a clone of MasonX::Request::WithMultiSession changed to work under a pure mod_perl2 environment. The external interface is unchanged, see MasonX::Request::WithMultiSession.

The actual changes I made can be found in the distribution in diff/WithMultiSession.diff ( made with 'diff -Naru' ... ).

A HOWTO for HTML::Mason::ApacheHandler2 and friends may be found at Mason-with-mod_perl2.

The following documentation is from MasonX::Request::WithMultiSession.

This module subclasses MasonX::Request::WithApacheSession2 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::WithApacheSession2, 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::WithApacheSession2.

Parameters

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

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 <mason@beaucox.com>.

AUTHOR ^

Beau E. Cox <mason@beaucox.com> http://beaucox.com.

The real authors (I just made mod_perl2 changes) is Dave Rolsky, <autarch@urth.org>

Version 0.01 as of January, 2004.

SEE ALSO ^

My documents, including: HOWTO Run Mason with mod_perl2, HTML::Mason::ApacheHandler2, MasonX::Request::WithApacheSession2.

Original Mason documents, including: HTML::Mason::ApacheHandler, MasonX::Request::WithApacheSession, MasonX::Request::WithMultiSession.

Also see the Mason documentation at http://masonhq.com/docs/manual/.

syntax highlighting: