mason request scope variable
paulo at digitalcraftsmen.net
Wed Jan 17 13:53:11 GMT 2007
Jérôme Etévé wrote:
> Hi everyone
> I plan to use HTML::Mason to develop a website, and I'm a bit struggling
> with session handling
> What I'd like to do is to retrieve the session in the init block of the
> autohandler, save it in the cleanup block of this same component and the
> most important, make it available under the name of $session in every
> component used.
> This $session variable should be global on a request scope.
The best way to do that is to do it in the mason handler perl script
that passes the request out to the mason templates.
You can set globals in here and do all your initial processing here with
a bit less overhead.
More information about the london.pm