On 13 May 2009, at 18:00, Doug Livesey wrote:

>
> I've done this in 2.2, but cannot figure it out for 2.3.2:
>
> Basically, I want to be able to share session data across a couple of
> apps.
> The way I did this in 2.2 was to create a view called sessions in the
> second app that read the sessions table of the first app.
> This done, I could tell them both to use active record sessions, and,
> lo! I had a shared session.
> Once I'd written a little routine to swap between apps (to basically
> clean out the session apart from user ids), I could then happily swap
> back and forth between them.

Don't you need to be making the session cookie have a different domain  
so that the cookie is sent to both apps ? I think some of the minutiae  
of session options changed slightly with 2.3.2

Fred
>
> The trouble is, rails has moved on to 2.3.2, and I'm having the very
> devil of a time getting something like this working again.
> I'm using the same view-as-sessions-table technique, and I have both
> apps sessions set to the same key and secret in the initializers/
> directory, but it just isn't working.
> Can anyone offer any advice as to what I could try next?
> Cheers,
>   Doug.
> -- 
> Posted via http://www.ruby-forum.com/.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to