0

is it possible that after a user have logged in on my site, then he pressed the back button, it will not go to the previous page or the login page again else it will be replace by another page?

2 Answers 2

1

As soon as user is logged in, create a new session.

When the login page is loaded, check the session for login information. If user is logged in, redirect to desired page. Otherwise, don't do anything, just display login page.

2
0

On the code to load the login page, you can detect if the user is logged in, and if so, redirect to the desired page. How this redirect is done will depend on what framework you're using, if any.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.