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
Post a Comment