[Rails] Sessid.

Jeremy Kemper
2006-05-08T18:12:09Z

On May 8, 2006, at 10:46 AM, Fernando Lujan wrote:
> Jeremy Kemper wrote:
>> You don''t need any of these mechanics - session load/save is
>> automatic.  Just use session directly and forget about it.
>>
>> When you do session[:user_id] = foo, the session is created if not
>> present, updated with :user_id => foo.  When the action is
>> complete, the session is serialized and stored for you.  On next
>> page load, session is reconstituted according to the value of
>> cookie OR query parameter _session_id.
>
> Hum, the problem is that I''m not loading the session in a page. I
> will load it in another app. I''m integrating rails with a old
> system... Because of that, I need to retrieve the values previously
> stored in the session. To use in the app.

Session data is serialized to the database using Marshal.dump so
direct access from a non-Ruby app is not too useful.  There''s
probably a simpler way to exchange data between your apps..

jeremy