I am using using forms authentication and creating a non persistent cookie.
The cookie expires when I close the browser which is the expected behaviour. But the cookie is not expiring even after the application is idle for the timeout specified. My requirement is that the cookie should expire either when the user close the browser or if the time out is elapsed.
I am using Asp.Net MVC4. Is there any way that I could achieve both of the requirement.