Does anyone know how to write a code such that when you log on to PAGE B FROM PAGE A, you click the back button on PAGE B to return to page A it will not link back to page A from, it will link another page.
If I understand correctly, your trying to change the way in which the browser operates. You cant actually alter the back buttons action.
However, you can emulate the same action. If the user returns the the page via the back button, you will be able to see that they have already logged in and redirect them to another page from the server.