JQuery controls the expiration time of cookies

From , 3 Years ago, written in JavaScript, viewed 53 times.
URL https://pastebin.vip/view/ccf0304d
  1. <script type="text/javascript">
  2. var expiresDate= new Date();
  3. expiresDate.setTime(expire.getTime() + (? * 60 * 1000)); //?替换成分钟数如果为60分钟则为 60 * 60 *1000
  4. $.cookie("__cookie__", 'helloworld', {
  5.             path : '/',           //cookie的作用域
  6.             expires : expiresDate
  7.         });
  8. }
  9. </script>
  10.  
  11.  
  12. //javascript/7084

Reply to "JQuery controls the expiration time of cookies"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website