a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
465 B
Plaintext
24 lines
465 B
Plaintext
<%@ Page language="c#" AutoEventWireup="true"%>
|
|
|
|
<html>
|
|
<head>
|
|
<script runat="server">
|
|
|
|
|
|
void Page_Load (object s, EventArgs e)
|
|
{
|
|
HttpCookie cookie = HttpContext.Current.Request.Cookies ["blah"];
|
|
if (cookie != null)
|
|
return;
|
|
|
|
HttpContext.Current.Response.Cookies ["blah"].Expires = DateTime.Now.AddMinutes(15);
|
|
HttpContext.Current.Response.Cookies ["blah"].Value = Guid.NewGuid ().ToString ();
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|