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