会话超时服务器错误 [英] session time out server error

查看:68
本文介绍了会话超时服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



在我的应用程序中,我们使用会话的每个页面都有很多页面

每当会话超时然后我的应用程序显示服务器错误,

实际上在该项目中我的高级开发人员没有使用尝试和捕获概念

甚至他没有'''检查天气会话是否具有空值



现在我需要在每一页都进行更改。



我需要花很多时间来改变所有页面,方法,........



有没有全球化的方式自动检查我的会话?



当它超时或具有空值我需要将他重定向到Login.aspx页面



请帮忙...





在此先感谢....

Hi All,

In My application there are lots of pages in every page we have used the session''s
Whenever the session is timed out then my app is showing an server error,
actually in that project my senior developer was not used try and catch concept
and even he didn''t check weather the session is having null value or not

now i need to change in each and every page.

it will take lots of time for me to change in all the pages,methods,........

is there any global way to check my session automatically?

when it timed out or having null value i need to redirect him to Login.aspx page

Please help...


Thanks In Advance....

推荐答案

您可以通过多种方式处理此问题。以下是一些链接,为您提供一些信息:

检测会话超时并重定向到ASP.NET中的登录页面 [ ^ ]

检测会话超时并重定向到主页(在vb中) [ ^ ]

检测ASP.Net会话超时 [ ^ ]

构建ASP.NET会话Ti meout Redirect Control [ ^ ]

会话超时后重定向到登录页面 [ ^ ]



您可能还想查看使用Global.asax文件。



祝你好运,

OI
You can handle this in numerous ways. Here are some links to provide you some info:
Detecting Session Timeout And Redirect To Login Page In ASP.NET[^]
Detecting Session Timeout and Redirect to HomePage(that''s in vb)[^]
Detecting ASP.Net Session Timeouts[^]
Build an ASP.NET Session Timeout Redirect Control[^]
Redirection to Login page after session time out[^]

You might also want to check using Global.asax file as well.

Good luck,
OI


重新检查天气以前会话超时已定义?这个重定向到会话空或超时登录页面的全局解决方案是表单身份验证。它非常简单。你可以在配置文件中设置它,所以你不需要在每一页都进行更改。
Recheck weather previously session timeout had been defined? and global solution to this redirection to login page on session null or timeout is forms authentication.Its very simple approach.You can set it in configuration file,so you wont need to make changes in each and every page.


这篇关于会话超时服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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