2
Hello
I have best article link for you :
Surely i can say it will help you somehow :
https://www.codeproject.com/Tips/566217/Session-killing-logout-in-server-when-browser-is-c
http://www.dotnetspider.com/forum/342428-end-session-or-kill-session-when-browser-closed-in-aspnet.aspx
Thanks
2
You can refer my article, It may help you which doing some work after closing tab...
http://www.c-sharpcorner.com/article/run-background-task-using-hostingenvironment-queuebackgroundworkitem-net-framew/
1
Hi Rohit,
You should implement auto logout timeout in your application like idle session expire after 1 or 2 hours and update the database flag status.
Or
You can create async service which calls after every 5 to 10 min to check user existance, if user not exist then update your flag.
1
Right now I am not using session but I want to achieve it by session if you have any reference or link then please provide me
1
Please provide more detail or snippet
And if you are using session , than write following in PageLoad() method as :
And make flag = false ; by default
Thanks