CitySunlight/CitySunlight/Account/LogOut.aspx.cs

21 lines
502 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace CitySunlight.Account
{
public partial class LogOut : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["username"] != null)
{
Session.Abandon();
Response.Redirect("../Main.aspx");
}
}
}
}