I have a third-party app (an upload progress bar - swfupload) that I'm using with rails 2.3.3 that cannot pass along session information or cookies. I can, however, pack the session data from my app into the URI it will use to upload a file and retrieve that when I get the file.
The trouble is, none of the magic hacks I see floating around the net work with 2.3.3. I don't know the specific details of why, but I've even tried the minimal RESTful demo application that uses swfupload and it pukes the same way mine does.
All I need is a way to force a reload of the session from a string, known to contain session data. Something along the lines of:
if session[:user_id]
do stuff
else
session.reload(session_string_from_uri)
end
You get the idea.
No, I'm not interested in trying yet another uploader solution for Rails. I've had enough of them fail that I'm going to stick with this solution because a simple answer to my current question will solve my problem.