Session lost in customErrors, defaultRedirect

G

Guest

Hi

I'm just testing some web stuff and created a errorpage to display nice messages to all users
My page that raises the error uses Server.GetLatestError to get the error and store in a session variable
My web.config file has a customErrors-tag and uses defaultRedirect to redirect to my errors page

It works fine, the error is caught on my page, session variable is set but on the errorpage the session is empty
Why is a new session created and how can I fix this

If I use Server.Transfer to go to my errorpage (instead of defaultRedirect), the session is intact

Any suggestions

Thanks
Markus
 

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

Similar Threads

customErrors 1
customErrors 1
<customErrors 3
customerrors tag doesnt works 2
"customErrors" in "web.config" 8
CustomErrors! What is going on? 0
customErrors 0
encrypted connectionStrings web.config customErrors 2

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top