If you have a problem about the cookie size (4KB) in your application, you may use database storage help. With this manipulation your app will keep an id in cookie and store other information in “sessions” table in DB and it will call the data from table by the id that is kept in cookie.
First: Execute following (it will create the table structure that is ready to be migrated)
Second: It’ll create the table
Third: inside the config/initializers/session_store.rb add following
That s all folks…