> I'm currently looking for a standard way of using session data in > Mason...what do people use and find works/doesn't work well? > > I need to store session data for a given user logged in to the app > across multiple requests.
Anthony, The way I have done it in the past is to set up a component (/syshandler) that the toplevel autohandler inherits from. This component handles setting up the session and storing it in a global. I like to use CGI::Session for the session object. Make sure you localize the global so that you don't have problems. See the mason book for more information: http://www.masonbook.com/book/chapter-11.mhtml#TOC-ANCHOR-1 You might also want to look into MasonX::Request::WithApacheSession. Regards, Bradley C Bailey ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users