On 7/2/06, Rajesh GS [email protected] wrote:
keep the session.
I’m not sure how rails sets cookies. If it sets them for the whole
domain, and your forum runs on the same domain and sets cookies domain
wide also, then you should be able to share the cookie. As for the
session data it would probably work to share that, but of course your
forum would have to read/write to it in the correct format.
It would probably be easier to do it another way though. For example
have a secret that your rails app and the forum both know, and when
linking to the forum put the hashed secret in the query string and
have that signify that the user is logged in. Or create an action in
your rails app that verifies if a user is logged in, and have your
forum do an http post to the verification url. Both of those are
probably easier then trying to share the session data.