检测会话超时重定向到登录面板 [英] detection session time out redirect to login panel

查看:49
本文介绍了检测会话超时重定向到登录面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友

我创建了管理面板.使用身份验证,我想为用户名创建会话超时.请给我有关该怎么做的解决方案?

hello friends

i created the admin panel. using authentication i want to create session time out to username. please give me solution about how to do?

推荐答案

下面是链接,可以减轻您的食欲:

检测会话超时并重定向到首页 [如何在ASP.NET中会话超时(当页面包含Ajax UpdatePanel时)重定向到另一个页面 [ ^ ]
Below are links to wet your appetite:

Detecting Session Timeout and Redirect to HomePage[^]

and

How to Redirect to Another Page when Session Timeout in ASP.NET (when pages contain Ajax UpdatePanel)[^]


if(Session["Session_name"]==null)
Response.Redirect("Login.aspx");


将此代码放在母版页上


put this code in masterpage


这篇关于检测会话超时重定向到登录面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆