Login Automatic after the Logout also

Situation

  1. Logout (You are here "/openemr/interface/login/login_frame.php?site=default ")

  2. Press Go to Back Button on the Login screen

  3. Will be page not found and retry page ( (You are here " Document Expired

This document is no longer available.

The requested document is not available in Firefox’s cache.

As a security precaution, Firefox does not automatically re-request sensitive documents.
Click Try Again to re-request the document from the website." )
  1. Press Retry Button / Refresh

  2. You will be redirected with out asking login credentials in to the Main page (You will be here “openemr/interface/main/main_screen.php?auth=login&site=default” ) No Login credential required

OpenEMR Version

I’m using OpenEMR version Number: v4.2.2

Browser:

I’m using: Mozila Firefox ( version 49 & 59 ) both have similar experience

Operating System

I’m using: Openemr Installed on Centos 7 and browsing from Windows 7

Logs

Did you check the logs? Was there anything pertinent in them? Paste them here (surround with three backticks (```) for readability

I didn’t go for that extent . I found when I clearing the visit History then Back Button will be deactivated and this will not happen. Other similar applications have solution like if we press back button will redirect to the login page or invalid session which will be with a link to redirect to login page.

Hi I solved the problem with following codes
||

||backbuttonloginissue
I added this on both Main_screen.php & login.php under head part before anything and worked. No after logout it redirecting me direct to the login page itself

So if anyone have this above mentioned issue you can try