ZhiYeJianKang_PeiXun/Song.Site/Manage/Panel/Keeper.aspx.cs
2025-02-20 15:41:53 +08:00

39 lines
986 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
using Song.Extend;
namespace Song.Site.Manage.Panel
{
/// <summary>
/// 保持登录状态的方法由客户端ajax时实调用
/// </summary>
public partial class Keeper : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//清理超时用户
LoginState.Admin.CleanOut();
//判断是否登录
if (LoginState.Admin.IsLogin)
{
//重新写入session
LoginState.Admin.Write();
Response.Write("0");
}
else
{
Response.Write("1");
}
Response.End();
}
}
}