Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the Document</title> </head> <body> <script> // assuming you're on https:// now // set the cookie secure (only accessible if over HTTPS) document.cookie = "user=Jack; secure"; alert(document.cookie); </script> </body> </html>