In our application settings there is a line to uncomment.
With that configuration we can specify options that will be set for all cookies we send from our application.
- -
String
(nil
by default), the domain :path
-String
(nil
by default), a relative URL:secure
-Boolean
(true
by default if using SSL), restrict cookies to secure connections- -
Boolean
(true
by default), restrict JavaScript access to cookies
When setting a value, a cookie can accept a String
or a Hash
to specify inline options. General settings are applied automatically but these options can be used to override values case by case.