title: jQuery cookie expiry time
body: <p>I was able to set a cookie using jQuery with a redirect to a landing page but I have no idea how can I set the cookie expiry date to less then one day (for example 15 minutes). I was not able to find explanation in the <a href="https://github.com/carhartl/jquery-cookie" rel="nofollow noreferrer">plugin documentation</a></p>
  <p>Here is my code:</p>
  <pre><code>$(function() {
      var COOKIE_NAME = 'splash-page-cookie';
      $go = $.cookie(COOKIE_NAME);
      if ($go == null) {
          $.cookie(COOKIE_NAME, 'test', { path: '/', expires: 1 });
          window.location = &quot;/example&quot;
      }
      else {
          // do nothing
      }
  });
  </code></pre>
  <p>Thank you for all help !</p>
  <p><strong>EDIT:</strong>
  I was able to set cookie as session cookie by skipping expire, well im fine with that but its not perfect, if you guys have some idea i would be grateful.</p>