Yes it clears for me. Does this not clear for you?
This does not prevent re authentication after a timeout though because a process is not actually fired when the system times out. So I am investigate a way to do this without the need to manipulate the browser’s behaviour through JavaScript.
I have a solution where it works on a single browser only. Basically:
If the user initiates a the logout process (as described in the above post), then a flag is created which will allow the user to login as normal.
The user logins and a process at login clears the flag.
if the system times out. and the user hits back then refreshes the browser, then it will authenticate the user, but a process at login will check if the flag is present and if it is not, then the logout process is fired which applies the flag.
This may have some user experience issues if the user refreshes the browser whilst logged in. It will take them to the login page again and they will have to login. Working through this, but see this as a minor issue.
if you introduce a second browser (or another device) for that same user. This is where there is a problem
If the user logs in on a second browser, it won’t log them in because the flag is not present - I am ok with this. The system checks if there are more than one session and if there are more, then the logout process is fired and the flag is applied.
The first browser times out (this is ok), however, because the flag is present, you can click back on the first browser and refresh and then the user will re authenticate with no issues.