Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
void Page_Load(object sender, EventArgs e)
{
if (Application["UserCount"] != null)
{
lblUserCount.Text = Application["UserCount"].ToString();
lblCurrentUser.Text = Request.AnonymousID;
}
}
</script>
<html>
<head runat="server">
<title>AnonymousID Example</title>
</head>
<body>
<form id="form1" runat="server">
<div>
Number of users:
<asp:Label ID="lblUserCount" Runat="server"></asp:Label><br />
Current user:
<asp:Label ID="lblCurrentUser" Runat="server"></asp:Label><br />
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,18 @@
<script language="C#" runat="server">
void Application_Start(Object sender, EventArgs e)
{
// Initialize user count property
Application["UserCount"] = 0;
}
public void AnonymousIdentification_Creating(Object sender, AnonymousIdentificationEventArgs e)
{
// Change the anonymous id
e.AnonymousID = "mysite.com_Anonymous_User_" + DateTime.Now.Ticks;
// Increment count of unique anonymous users
Application["UserCount"] = Int32.Parse(Application["UserCount"].ToString()) + 1;
}
</script>

View File

@@ -0,0 +1,7 @@
<configuration>
<system.web>
<compilation debug="true"/>
<trace enabled="true"/>
<anonymousIdentification enabled="true" />
</system.web>
</configuration>