I've created a website with a section that requires visitors to login to access certain company data.
At the moment the login works fine and if the user ends the session by clicking the 'Log Out' button, they are forced to login again if they want to access these pages again.
The problem is that if a user browses away from the site whilst they have an active session, they can come back to the secure pages without having to login again.
How do I destroy the session if they happen to browse away without logging out first ?
I'm using forms authentication and ending the session using FormsAuthentication.SignOut() when they hit the log out button
At the moment the login works fine and if the user ends the session by clicking the 'Log Out' button, they are forced to login again if they want to access these pages again.
The problem is that if a user browses away from the site whilst they have an active session, they can come back to the secure pages without having to login again.
How do I destroy the session if they happen to browse away without logging out first ?
I'm using forms authentication and ending the session using FormsAuthentication.SignOut() when they hit the log out button