Files
g.hnyhua.cn/Mtxfw.VipSite/Logout.aspx.cs
2026-02-07 15:48:27 +08:00

34 lines
945 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Mtxfw.VipSite._admin
{
public partial class Logout : Mtxfw.Utility.MemberBase
{
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
if (!IsPostBack)
{
int dIFStores = IFStores;
Session.RemoveAll();
string RUrl = Request.Url.ToString();
Response.Cookies.Add(new HttpCookie("{RUrl}", RUrl));
Response.Cookies["{RUrl}"].Expires = DateTime.Now.AddDays(1);
if (dIFStores == 1)
{
Response.Redirect("/gl.aspx");//gl.aspx
}
else
{
Response.Redirect("/");
}
}
}
}
}