DEV Community

S-Shanmathi
S-Shanmathi

Posted on • Updated on

How can I save the time , when the browser closed by the user in mvc identity

ASP.NET MVC IDENTITY:

I have tried to unload the event on the Layout page but it is not triggered, Alternatively, I have also used session time out in 'inproc', to save the logout time WHEN THE USER DOESN'T LOGOFF AND CLOSES THE BROWSER/TAB.

In Global.asax I have used session_end() event to end the session in one minute and logoff automatically after 1 minute in my MVC IDENTITY.

The requirement is that I need to store the time of browser/tab close by the user as LogOFF time in the database.

Is there any event to do the same?

Top comments (0)