I am developing a rails application. I just got stuck handling cookies. I have set my cookie in rails as follows.
(cookies[AUTH_TOKEN_NAME] = { value: auth_token, domain: domain }).
But then I tried to change its option value by
cookies[AUTH_TOKEN_NAME]={expires: 24.hour.from_now}
But it failed. How do I modify its expires option after the cookie has already been set?