Is it possible to clear the users history for their current session?
I'm writing a login function, which checks if the user currently logging in is the same user as the previously logged in user. If they are, they are returned to the previous page. Otherwise, they are redirected to the home page.
However, if a different user logs in, all they have to do is keep hitting the back button until they get to a page which was accessed by the previous user, which may contain personal info.
So I want the script to clear their history so that they can't use the back button.
I did try getting it to open a new window, and close itself, but if popups are blocked it doesn't work.
I'm writing a login function, which checks if the user currently logging in is the same user as the previously logged in user. If they are, they are returned to the previous page. Otherwise, they are redirected to the home page.
However, if a different user logs in, all they have to do is keep hitting the back button until they get to a page which was accessed by the previous user, which may contain personal info.
So I want the script to clear their history so that they can't use the back button.
I did try getting it to open a new window, and close itself, but if popups are blocked it doesn't work.