MasonX::Request::WithApacheSession

Add a session to the Mason Request object
Download

MasonX::Request::WithApacheSession Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Brad Lhotsky
  • Publisher web site:
  • http://search.cpan.org/~blhotsky/

MasonX::Request::WithApacheSession Tags


MasonX::Request::WithApacheSession Description

Add a session to the Mason Request object MasonX::Request::WithApacheSession is a Perl module that integrates Apache::Session into Mason by adding methods to the Mason Request object available in all Mason components.Any subrequests created by a request share the same session.SYNOPSISIn your httpd.conf file: PerlSetVar MasonRequestClass MasonX::Request::WithApacheSession PerlSetVar MasonSessionCookieDomain .example.com PerlSetVar MasonSessionClass Apache::Session::File PerlSetVar MasonSessionDirectory /tmp/sessions/data PerlSetVar MasonSessionLockDirectory /tmp/sessions/locksOr when creating an ApacheHandler object: my $ah = HTML::Mason::ApacheHandler->new ( request_class => 'MasonX::Request::WithApacheSession', session_cookie_domain => '.example.com', session_class => 'Apache::Session::File', session_directory => '/tmp/sessions/data', session_lock_directory => '/tmp/sessions/locks', );In a component: $m->session->{foo} = 1; if ( $m->session->{bar}{baz} > 1 ) { ... } Requirements: · Perl


MasonX::Request::WithApacheSession Related Software