Saturday, March 31, 2012

Session Timeouts

H, I have noticed that when the session has timed out, and you refresh the
pag etc, you very often end up with debug messages etc. Is there any clean
way to handle this so the users will not see the stack trace ?

I know there is the option to turn on the friendly messages, will this do
the trick >?

Cheers

--
Best Regards

The Inimitable Mr NewbieWhat's the debug message? Is it because the code is assuming Session is valid
even though it's not? I suspect that might be the problem...

In any event, if you don't want your users to see unhandled exception information,
consider setting up an error redirect page via the <customErrors> element
in web.config.

http://msdn.microsoft.com/library/d...rorsSection.asp

-Brock
DevelopMentor
http://staff.develop.com/ballen

> H, I have noticed that when the session has timed out, and you refresh
> the pag etc, you very often end up with debug messages etc. Is there
> any clean way to handle this so the users will not see the stack trace
> ?
> I know there is the option to turn on the friendly messages, will this
> do the trick >?
> Cheers
> The Inimitable Mr Newbie

0 comments:

Post a Comment