summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/setsecurecookie.html
blob: 18dc2dda8d3f2ce37d310716f3ba706d35328393 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html>
<head>
<title>This page sets a secure cookie</title>
<script type="text/javascript">
function makeCookie()
{
    console.log("cookies = " + document.cookie);
    expireAt = new Date;
    expireAt.setMonth(expireAt.getMonth() + 3);
    username = "Good";
    document.cookie = "name=" + username + ";expires=" + expireAt.toGMTString()
      + ";secure";
}
makeCookie();
</script>
</head>
</html>