Forum: Ruby on Rails how can I retrieve a session based on the session-id

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Roberto S. (Guest)
on 2006-02-06 12:47
(Received via mailing list)
I am trying to mix Flash and RoR (for fileupload without pagerefresh)

Unfortunately the requests originating from the flashplayer do not have
the
right sessionid. So I tried to hackaround with reading the _session_id
form
the cookie and sending it together with the fileupload POST from the
flashplayer to the webserver.

But how can i retrieve the session based on the session_id at my
controller
?

I tried to add this to my action:

::ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:session_id
=> params[:session_id])

and I hoped that the session for the request gets created based on
params[:session_id], but this is not the case.

So how do I retrieve from within an action a session from the
session-storage based on a sesison_id ?
This topic is locked and can not be replied to.