bremen_short_url/App_Code/webBase.cs

36 lines
741 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
/// <summary>
/// webBase 的摘要描述
/// </summary>
public class webBase : System.Web.UI.Page
{
public authPermission objAuth;
public webBase()
{
//
// TODO: 在這裡新增建構函式邏輯
//
this.Load += new EventHandler(this.Page_Load);
}
protected void Page_Load(object sender, EventArgs e)
{
string myIP = globalClass.GetIPAddress();
objAuth = new authPermission();
//Response.Write(objAuth.isLogin().ToString());
if (objAuth.isLogin() == false)
{
Response.Redirect("Login.html");
return;
}
}
}