Swfobject rails 2.3.2 - get session vars

Hello,
i set up Swfobject and it works well, but there is a problem: i’m not
able to get sessions vars through Swfobject upload requests.
Swfobject seems to create another session_id record in the table, so i
lose my variables such as session[:user_id] etc…

In “new.html.erb”, i wrote:

upload_url : ‘<%= swfupload_documents_path %>?_Docs_session=<%=
request.session_options[:id] %>&authenticity_token=<%=
form_authenticity_token %>’,

and in “DocumentsController”, there is:
protect_from_forgery :except => :swfupload

can anyone help me please?

Thank you very much.

Regards

Alberto

up

I haven’t used this particular component, but I’m fairly sure that you
can’t just put the session id into the URL like that; it’s typically
stored in a cookie, which the Flash object may not be sending. You may
want to look for a mailing list more specific to the Flash component.

–Matt J.

On Jul 21, 4:24 pm, Alberto R. [email protected]

Matt J. wrote:

I haven’t used this particular component, but I’m fairly sure that you
can’t just put the session id into the URL like that; it’s typically
stored in a cookie, which the Flash object may not be sending. You may
want to look for a mailing list more specific to the Flash component.

–Matt J.

On Jul 21, 4:24�pm, Alberto R. [email protected]

Thank you very much for your anwser.
I’m looking for a solution, there are a lot of how-to, but this problem
seems to be unsolvable.

Alberto

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs