问题描述
publicvoidDispose(){}publicvoidInit(HttpApplicationapplication){application.AcquireRequestState+=(newEventHandler(this.Application_AcquireRequestState));}privatevoidApplication_AcquireRequestState(Objectsource,EventArgse){HttpApplicationobjApp=(HttpApplication)source;HttpRequestobjRequest=objApp.Request;//从Cookes里面取出解密后的登录用户信息UserEntityobjCurrentUser=HttpModule.UserHandle(objApp);//验证是否登录if(objCurrentUser.UserID>0){try{//以下是登录后的逻辑..........}catch{}}else//未登录跳转到登录页面{objApp.Response.Redirect("~/Login.aspx");return;}}web.config的配置文件为<system.webServer><validationvalidateIntegratedModeConfiguration="false"/><modules><addname="PortalModule"type="LY.BLL.HttpModule.PortalModule"/></modules></system.webServer>经过调试发现一直在执行objApp.Response.Redirect("~/Login.aspx");这句代码,进入了死循环状态。哪位大神遇到过这个问题,请帮帮忙!