Under Poet, $m->session returns the Plack session. This is documented here -
http://search.cpan.org/perldoc?Poet::Mason#NEW_REQUEST_METHODS and mentioned in the tutorial, though it definitely ought to be mentioned elsewhere, e.g. a FAQ. Jon On Jun 25, 2012, at 4:33 AM, A Kobame wrote: > Hi again, > > Want to move one of my HTML::Mason app to Mason2, but step-by-step. > > In the 1st step i want move only the whole HTML::Mason app to Starman. > Here is the working HTML::Mason::PSGIHandler but my HTML::Mason app > was built with MasonX::Request::WithApacheSession - for getting > $m->session. > > Is here some easy way getting to work the $m->session with Plack? > Preferable with Plack::Middleware::Session, but ANY solution is OK. > > When I enabled the middleware i got the following: > - $r->query->{psgi_env}->{psgix.session.options}, whats contain the > Plack::Middleware::Session ID, and > - $r->query->{psgi_env}->{psgix.session} - empty hash > > The question is how to get the above into $m->session, for getting to > work my old $m->session->{_session_id}; and similar... Any easy > workaround? /probably is here some dark-magic subclassing voodoo... > ;(/ > > t. > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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