[Catalyst] restore session manually

Bernhard Bauch bauch at zsi.at
Fri Jul 2 08:30:59 GMT 2010


dear cata-list,

i need a little help ...
its about sessions.

i'm trying to use this super nice jquery file uploader with progress  
bar (http://www.uploadify.com/).
the only problem is that the upload request is done via a flash-swf  
thingie and uploadify (and/or flash) is not able to deliver session- 
cookies to my catalyst app.
BUT uploadify can sent params with the request.
of course uploading should be only possible if the user is logged in.  
so i need to restore the session manually.
so i pass the session-id as an param to by app controller like:

	sub json_create : Local {
		my ($self, $c) = @_;
		warn "received sessoin id: " . $c->req->param('session_id');
		...
	
the problem is i did not manage to restore the session from the  
session-id manually.
i did try to call some of the functions of Plugin::Session manually,  
but it did not work out.

normally i use:

	use Catalyst qw/ ....
                 Authentication
                 Authorization::Roles
                 Authorization::ACL

                 Session
                 Session::Store::FastMmap
                 Session::State::Cookie
	...
for session and auth handling.

thanks for help!
bernhard bauch



Bernhard Bauch, Webdevelopment
ZSI - Zentrum für soziale Innovation
bauch at zsi.at




More information about the Catalyst mailing list