网站被重定向到ASP.Net中的登录页面 [英] Website gets redirected to Login Pages in ASP.Net

查看:66
本文介绍了网站被重定向到ASP.Net中的登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,其中一个网页用于在Crystal Reports中显示记录。当我选择过滤记录时,报告将显示在屏幕上。但是当我选择所有记录时,大约3分钟后,网页被重定向到登录页面。

请注意,我没有设置任何错误页面或使用代码或web.config文件重定向到登录页面。

我看不到任何错误或原因导致它被转移到登录页面。任何人都可以帮忙吗?



谢谢

I have an application where on one of the webpage is used for displaying records in Crystal Reports. When I am selecting filtered records the report is displayed on the screen. But when I select all the records, after around 3 minutes webpage is redirected to Login page.
Please note that I have not set any error page or redirected to Login page using code or web.config file.
I cannot see any error or reason why it get transferred to Login page. Can anyone help?

Thanks

推荐答案

这里有几点需要考虑:

1)如上所述,会话长度可能太短 - 这通常由托管服务配置,但在IIS中它默认为20分钟,所以除非你使用非常非常便宜的主机,否则它是不太可能快速耗尽。

2)有一个脚本超时 [< a href =http://www.w3schools.com/asp/prop_scripttimeout.asptarget =_ blanktitle =New Window> ^ ]默认为200秒:相当接近周围3分钟你引用问题的时间,所以我开始看看 - 服务器很可能已经厌倦了等待CR响应并杀死你的应用程序,这将结束会话并可能让你回到登录屏幕。



但是这里有一个更重要的问题:有多少用户做你知道谁会坐在网页上等待30秒,更不用说三分钟?我的无聊门槛开始在大约五秒内开始削减,并且如果他们在十分之一左右没有回复就会杀死页面......你可能值得一试更好的方法来解决这个问题,因为我怀疑用户不会满意坐在那里等待永远...
There are a couple of things to think about here:
1) As mentioned the Session length may be too short - this is generally configured by the hosting service, but in IIS it defaults to 20 minutes, so unless you are using a very, very cheap host it is unlikely to run out that quickly.
2) There is a Script timeout[^] which defaults to 200 seconds: rather close to the "around 3 minutes" you quote as the problem time so I would start by looking at that - it is quite possible that the server has got fed up waiting for CR to respond and killed your app, which would end the session and could return you to a log in screen.

But there is a much more significant problem here: How many users do you know who are going to sit waiting from a web page for 30 seconds, much less three minutes? My boredom threshold starts to cut in around five seconds, and will kill pages if they don't respond in ten or so...it might be worth your looking at a better way to handle this, as I suspect users will not be happy to sit there waiting "for ever"...


这篇关于网站被重定向到ASP.Net中的登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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