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 -- Posted via http://www.ruby-forum.com/.
up -- Posted via http://www.ruby-forum.com/.
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 Jones On Jul 21, 4:24 pm, Alberto Ruffo <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 > -- > Posted viahttp://www.ruby-forum.com/.
Matt Jones 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 Jones > > > On Jul 21, 4:24�pm, Alberto Ruffo <rails-mailing-l...@andreas-s.net>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 -- Posted via http://www.ruby-forum.com/.