How to know when session is end?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi all,

My application tracking visitor by save several information once in
Session_Start global event then store recorded row ID in session
variable. Unfortunately, in Session_End global event, Session object is
set to null so I cannot get previous stored table row ID for updating
session expire time in database?

how do I store session information for tracking its expire time?
thank you,

.