On Wed, Jun 1, 2011 at 6:42 PM, tashfeen.ekram <[email protected]>wrote:
> i noticed if you access my site with xxx.com versus www.xxx.com > separate user sessions are created such that same visitor form the > same browser can log in twice. I am not sure if this perhaps is a DNS > issue or this can be dealt at the level of rails app. > > in config/initializers/session_store.rb MyApp::Application.config.session_store :cookie_store, :key => '_my_app_session', :domain => 'xxx.com' so any subdomain will still use the session for xxx.com > Thanks. > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- ------------------------------------------------------------- visit my blog at http://jimlabs.heroku.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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

