No, there is no way to implement this. Your web browser does not hit the server when the user clicks "back".
Is there a a possibility (e.g. meta attributes in html header) to force the browser to reload any page?
Or we can try another approach that when the login page renders it either disables the back/forward button or clicking the back button just refreshes the login page.