I want to set the default cookie domain for my application to ".mydomain.com" in order to allow the cookie session to be stored in subdomains. There are many places showing how to do this in Rails 2.x, but these solutions do not work for Rails3. Does anyone know how I can install it?
I have found a solution. There he is:
Rails.configuration.session_store :cookie_store, { :key => '_your_app_session', :domain => ".domain.com" }
This should go to config / initializers / session_store.rb. Works great for me.
Source: https://habr.com/ru/post/1306238/More articles:Archiva SMTP Real Domain Name Required for Sender Address Error - archivaWhy doesn't calling close () after fopen () close? - c ++Rails, use the contents of the file in the controller - ruby ββ| fooobar.comHow to print the number of seconds since unix in a Solaris shell - dateHtml Entity Code for ΕΎ - htmlCreating a universal iPad application - Where is the device recognition code? - iphoneSilverlight Dataform validation not working - c #Problem with char pointer function C, can anyone explain? - cUnable to remove constraint in SQL Server 2005 "Unable to remove constraint. See Previous Errors" - sqlInvalid authentication - ruby ββ| fooobar.comAll Articles