Session expired exception

M

Marina

There is no specific exception that happens. You are likely to get a
NullReferenceException because you won't find the variable you are looking
for and you will try to use it. Thsi is a pretty generic exception though,
you can't assume it was because the session object doesn't have your
variable.
 
G

Galore

Hello,

Guys, how can I determine the kind of exception is thown when the I try
to access the Session object when it has expired. I need to write code
that handles it (show a custom error page). When another exception
happens, such as oledbexception, I'll use another custom error page,
definied in my web.config.

I'll use the Application_Error event to catch all the exceptions.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top