Welcome to Bilal Haidar [MVP, MCT] Official Blog Sign in | Join | Help

HttpSessionState and ASP.NET Exception

A nice trick I read in the ASP.NET 2.0 Core Reference is that, when an exception occurs at the end of the request, that is the GetLastError of the Server object returns an exception, the Session data is lost, however, in your handler of the Exception, if you call Server.ClearError, the Session is restored!

That is a great tip Dino, Thanks!

Regards

Published Saturday, November 25, 2006 4:32 AM by BilalHaidar [MVP]

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
required 
(required)