views:

337

answers:

1

Hi, i'm working on multisite and I'd like to share session data between two or more sites. I have session id, but what is the best way to retrieve session data from cookie store? Or it will be better to enable ActiveRecord session store and use find_by_session_id method to retrieve session data? Using this way - I need to configure one site as SessionStore provider and others will use second connection to database to retrieve session data. What is the best way to do this?

+1  A: 

AFAIK you can't share cookies between various websites due to security issues. Were you I would use memcached instead to share the data depending on the user ID in my user base.

khelll