0
嗨 我在会话超时在Asp.net与Ajax调用出现问题。 一旦会话超时,当控制调用asynchrous这不是 重定向到登录页面。(我使用窗体身份验证)问题在会话超时在Asp.net与Ajax调用
在同一个页面,如果我尝试重定向(在Preinit)如果会议到登录页面过期.., 登录页面与前一页一起出现(由于ajax调用)。
当会话超时以及发出ajax调用时,请让我知道重定向到登录页面的方式。
嗨 我在会话超时在Asp.net与Ajax调用出现问题。 一旦会话超时,当控制调用asynchrous这不是 重定向到登录页面。(我使用窗体身份验证)问题在会话超时在Asp.net与Ajax调用
在同一个页面,如果我尝试重定向(在Preinit)如果会议到登录页面过期.., 登录页面与前一页一起出现(由于ajax调用)。
当会话超时以及发出ajax调用时,请让我知道重定向到登录页面的方式。
asp.net阿贾克斯内置的服务,帮助您与认证,授权
Sys.Services.AuthenticationService.logout(redirectUrl, logoutCompletedCallback, failedCallback, userContext);
要使用这项服务的内容加入到web.config中
<system.web.extensions>
<scripting>
<webServices>
<authenticationService enabled="true" />
</webServices>
</scripting>
</system.web.extensions>
http://www.asp.net/ajaxlibrary/Reference.Sys-Services-AuthenticationService-logout-Method.ashx