Skip to content

Commit

Permalink
Base: Update cookie test page to set some attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
trflynn89 authored and awesomekling committed Apr 12, 2021
1 parent cab2e2d commit fc03f8d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Base/res/html/misc/cookie.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<body>
<input type=button onclick="setCookie('cookie1=value1')" value="Set Cookie 1" />
<input type=button onclick="setCookie('cookie2=value2')" value="Set Cookie 2" />
<input type=button onclick="setCookie('cookie3=value3')" value="Set Cookie 3" />
<input type=button onclick="setCookie('cookie1=value1; max-age=100; path=/res/html')" value="Set Cookie 1" />
<input type=button onclick="setCookie('cookie2=value2; expires=Sat, 23 Jan 2060 08:10:36 GMT')" value="Set Cookie 2" />
<input type=button onclick="setCookie('cookie3=value3; domain=serenityos.org')" value="Set Cookie 3" />
<input type=button onclick="setCookie('cookie4=value4; httponly; secure')" value="Set Cookie 4" />
<br /><pre id=cookies></pre>

<script>
Expand Down

0 comments on commit fc03f8d

Please sign in to comment.