Click here to Skip to main content
16,016,489 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
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
Posted
Comments
JoCodes 1-Jan-14 8:23am    
Have you checked the session is time out?
Kornfeld Eliyahu Peter 1-Jan-14 8:25am    
You may trace the flow (fiddler)?
Do you have a session time-out that too short?
May you show us the code that runs 3 minutes but didn't finish? (how many records it supposed to bring up?)
thatraja 1-Jan-14 8:26am    
Share the code in your question.

1 solution

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"...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900