title: How to update cookie expiration time with JavaScript?
body: <p>I want sliding time for expiration time of cookie.
  This can be done by getting cookie and again setting with new expiration time and deleting previous cookie. But , I want to know better way than this . I need some good solution. </p>