Hi, On Tue, Jun 26, 2012 at 8:51 AM, A Kobame <kobam...@gmail.com> wrote: > But as i wrote, in 1st step i want only move the HTML::Mason app (aka > Mason1) app to Starman using "HTML::Mason::PSGIHandler". [...] > So, as the 1st step i simply want run HTML::Mason - but in PSGI env - > with the nice HTML::Mason::PSGIHandler - and looking for the way how > to use $m-session (in Mason1/PSGI). > > Probably, it is too hard...
Haven't tried this but if you might try to create a subclass of HTML::Mason::Request, that adds a session method that returns the $r->query->{psgi_env}->{psgix.session} session. Then make HTML::Mason use your own request class with request_class => 'My::Request::Class' when you create your HTML::Mason handler. my $h = HTML::Mason::PSGIHandler->new( comp_root => "/path/to/doc_root", # required request_class => 'My::Request::Class', ); As I said, I never used this, so YMMV, but feels sane to me. I'm probably missing something. Bye, -- Pedro Melo @pedromelo http://www.simplicidade.org/ http://about.me/melo xmpp:m...@simplicidade.org mailto:m...@simplicidade.org ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users