Friday, June 15, 2007

SESSSION_END not firing

Code written in your Global.asax file for Session_End is not firing than it may be because of following conditions:

Cause 1: You are not using InProc Session Mode — The mode attribute of the element in your application Web.config file must be set to "InProc". If it isn't, the End event simply cannot fire.

Cause 2: You are not using Session — The Session End event can't fire if there's no Session to End. Check and make sure your application is storing information through the Session object?

Cause 3: Your code is imperfect — There might be error somewhere in the code that responds to the End event. For that you can try running your application in debug mode, with a short timeout attribute. Visit the page and then wait. Check whether the Session_End event fires? Check whether for any error occur in your code?

No comments:

Most Recent Post

Community Updates

Subscribe Blog via Email

Enter your email address:



Disclaimers:We have tried hard to provide accurate information, as a user, you agree that you bear sole responsibility for your own decisions to use any programs, documents, source code, tips, articles or any other information provided on this Blog.
Page copy protected against web site content infringement by Copyscape