Session.Abandon()
If you need to store session values between old and new session, use Session.CopyTo().
Take notice that new session is created after Abandon() and it could end up using same session ID as the old one. You can override this by adding sessionState element to web.config and setting it's regenerateExpiredSessionId attribute to false.
|