cookie.html 296 B

123456789101112131415
  1. <html>
  2. <head>
  3. <script>
  4. var date = new Date();
  5. date.setTime(date.getTime() + 1000 * 86400);
  6. document.cookie = "foo=bar; expires=" + date.toUTCString() + "; path=/";
  7. </script>
  8. </head>
  9. <body>
  10. Set cookies
  11. </body>
  12. </html>