title: Setting expiry time of cookie in rails
body: <p>I need to set a cookie which expires after 4 hours. Now, the users can reside in multiple timezones. So, if I set the cookie in rails and set expiry based on server time, would it lead to invalid expiry times for some users or does rails handle this issue or does browser cookies themselves handle this issue ? Should I set this cookie in javascript, so that user's  browser time is taken to set the expiry?</p>
  
  <p>Thanks!</p>