I have the following scenario for a website:
Custom authentication is implemented which creates an encrypted user cookie on authentication.
I have to set this cookie to expire after a certain idle time(T) which would be set up in web.config.
If all browser windows running my application are closed by the user before this expiry time(T),the cookie should be deleted.
It is a web farm environment and we are not using any session management.
I cannot use a non persistent cookie ,so basically what I need to do is expire a persistent cookie on the close of all browser windows running my web app.
Is there any way I can achieve this?
Some kind of javascript?