How To Make Sure That a Logged-Out User Can't Get Into My Website

I have a website that requires the user to log in. At some point, the user either logs out or is automatically logged out due to inactivity. How can I ensure that this user won’t be able to get back into the system without logging back in?

I have found suggestions to disable the browser’s “back” arrow function, but what I’ve seen is not very satisfying.

I know there has to be a way to do this because there is no end of websites that won’t allow the user back into their system without logging back in.

I assume the solution lies in JavaScript and/or jQuery.

Any suggestions? Documentation you can point me to?

Thanks much.

Len Jacobson

Assuming your site is done in Php, you would use Sessions. Anyone talking about disabling the back button doesn’t know what they are talking about.

1 Like

Thank you for your quick response to my question. Your suggested implementation using Sessions was perfect. Works great!

Thanks so much!

Len Jacobson

1 Like
Sponsor our Newsletter | Privacy Policy | Terms of Service