in reply to mason request scope variable

Yes, Chap 11 of the Mason Book is a good reference for a Session Handling recipe.

We deal with sessions in a slightly different manor (using a DB to store the session data) --- but to answer

This $session variable should be global on a request scope.
Do you know how to set that up ?

We declare it in package HTML::Mason::Commands with use vars $session