-
Notifications
You must be signed in to change notification settings - Fork 0
/
Global.asax.cs
41 lines (39 loc) · 1.17 KB
/
Global.asax.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;
using System.Web.Routing;
using System.Web.Security;
using System.Web.SessionState;
namespace WebApplication1
{
public class Global : HttpApplication
{
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
Application["counter"] = 0;
Application["q1"] = 0;
Application["q2"] = 0;
Application["q3"] = 0;
Application["q4"] = 0;
}
void Session_Start(object sender, EventArgs e)
{
Session["voted"] = false;
Session["uName"] = "guest";
Session["userFName"] = "guest";
Session["Admin"] = "False";
}
void Session_End(object sender, EventArgs e)
{
Session["uName"] = "guest";
Session["userFName"] = "guest";
Session["Admin"] = "False";
Session["voted"] = false;
}
}
}