This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17457|Reply: 1

[ASP.NET] How is Session.Abandon different from Session.Clear?

[Copy link]
Posted on 2/26/2017 7:12:00 PM | | |

Session.Clear() is to delete all items in the Session object.

Session object. But the Session object is still preserved.
Session.Abandon() deletes the current Session object, and the next time is a new Session.

The main difference is that when using Session.Abandon, Session_End method is called (in InProc mode). Next one please

When it comes, it will inspire Session_Start method. Session.Clear does not abort just clearing all data in the session

Session, so those methods are not called either.




Previous:NPOI sets the width and height of the cells
Next:HtmlAgilityPack takes the data in scrip{filter}t(js).
 Landlord| Posted on 11/9/2017 3:38:45 PM |
Login code

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com