-
Notifications
You must be signed in to change notification settings - Fork 0
/
Logout.aspx.cs
31 lines (27 loc) · 993 Bytes
/
Logout.aspx.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
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Logout : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// Destroy the Session.
GUIVariables gui = (GUIVariables)Application["gui"];
ThankYouLabel.Text = "Thank You for using " + gui.StoocksFont + " Come back tomorrow to check your portfolio and your success ratio.";
// Session.Abandon();
HttpCookie stoockerCookie = Request.Cookies["stoockerCookie"];
if (stoockerCookie != null)
{
stoockerCookie.Expires = DateTime.Now.AddMinutes(-1);
Response.Cookies.Add(stoockerCookie);
}
// stoockerCookie["username"] = null;
}
}