asp.net - Session_End Alternatives -


I have seen in some other questions that session_ end () is not used in Global.asax.cs. The reason for this is that if you are not using the default session handler, then session_id will not be found, right? Is there any other case where he will not be called?

The big question is: If you can not depend on session_and (), then what do you do to determine whether the session is closed?

Can not you check what is present before using it?

  if (session ["variable"]! = Null) {// code here}  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -