In have a web app where session has the idletimeoout, 2 hours. Now when the session is idle for 2 hours I need to send an email. How to I raise an event on session expire?
services.AddSession(options =>
{
// Session timeout is at 2 hours
options.IdleTimeout = TimeSpan.FromHours(2);
}); /