SessionEnd use to log data into database if session times out - ASP.NET Introduction

Q.  You have to log the data into database if your session times out. Which event you will use?
- Published on 19 Oct 15

a. Session_End
b. Application_End
c. Application_Start
d. Application_SessionTimeout

ANSWER: Session_End
 
The Session_End Event is fired whenever a single user Session ends or times out. By using timeout property of session state you can control the session expire time. A session expires when the time specified by the Timeout property passes without a request came from the user.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)