Forwarded from the Grails mailing list. As far as I'm aware, the
session is managed by the servlet container. I have no idea how you
could restore the servlet session. You may have to use Shiro's session
instead, which is enabled with this configuration option:

  security.shiro.session.mode = "shiro"

The default value is "http". You probably have to do some other stuff
to get your upload working, but I don't know what. Hopefully one of
the real Shiro experts can help.

Cheers,

Peter


---------- Forwarded message ----------
From: Finn Herpich <[email protected]>
Date: 2009/9/22
Subject: [grails-user] I want my cookie back (shiro)
To: [email protected]


Hi *,

I'm currently playing around with swfUpload (http://swfupload.org) in
an application secured via the shiroPlugin.

So swfUpload has this nice plugin which enables it to send the cookies
(needed for shiros session handling afaik) in addition to the uploaded
file.
But, in the swfUpload it says:
"Note that this plugin sends the cookies name/values in the POST or
GET. On the server side they will not be accessible as cookies. Some
frameworks that automatically check cookies for session or
authentication values still will not be able to find the values."

My question here is: where can I place some code to restore the cookie
with the session-id from the POST/Get parameter?

Cheers


Marfinn Software GmbH
Firmensitz: Endenicher Straße 262, 53121 Bonn
Registergericht: Amtsgericht Bonn, HRB 16233
Geschäftsführer: Martin Hensel, Finn Herpich


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to