|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/cae6aa2e/15328683/ |
?#pragma checksum "D:\wwwroot\anlian2025\wwwroot\App_Code\Session.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "CCCCB735C5B854DF788231E8472A0DB7B573DEB3"
#line 1 "D:\wwwroot\anlian2025\wwwroot\App_Code\Session.cs"
using System;
using System.Data;
using System.Configuration;
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;
namespace WebApp.Components
{
/// <summary>
/// 判断治理员是否登录
/// </summary>
public class Session
{
/// <summary>
/// 判断是否登录
/// </summary>
/// <param name="objUserName"></param>
/// <returns></returns>
public bool AdminSession(object objUserName)
{
bool bolSign = false;
if (objUserName == null)
{
System.Web.HttpContext.Current.Response.Write("<script>");
System.Web.HttpContext.Current.Response.Write("parent.location.href='login.aspx'");
System.Web.HttpContext.Current.Response.Write("</script>");
}
else
{
bolSign = true;
}
return bolSign;
}
}
}
#line default
#line hidden