You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Old browsers (IE 6, 7, 8), don't support max-age setting.
If we set default :max_age from Lotus::Configuration, or we specify inline in a cookie cookie[:foo] = {value: 'bar', max_age: 300}, it will be ignored.
I think it's our role to provide transparent solutions to browsers quirks.
We should set expires automatically, when it isn't present, but max-age is.
# Do nothingcookies[:foo]='bar'# Do nothingcookies[:foo]={value: 'bar',expires: Time.parse('2015-05-14 12:01:00')}# Automatically set expires cookies[:foo]={value: 'bar',max_age: 120}
Old browsers (IE 6, 7, 8), don't support
max-age
setting.If we set default
:max_age
fromLotus::Configuration
, or we specify inline in a cookiecookie[:foo] = {value: 'bar', max_age: 300}
, it will be ignored.I think it's our role to provide transparent solutions to browsers quirks.
We should set
expires
automatically, when it isn't present, but max-age is.See http://mrcoles.com/blog/cookies-max-age-vs-expires/
The text was updated successfully, but these errors were encountered: