This can be a security issue if you wish to access your email from a public computer. In this situation, it is advisable to open Gmail in incognito mode or private mode. If you are unable to do so, you may follow the steps below to sign out of Gmail each time you close your browser. This may be due to the Cookies Session, which keeps your data and brings it back when you re-open your browser for the same URL.

Stay signed out of Google when closing Firefox

The Firefox browser keeps the Cookie Session and restores it back. When you open your browser again, it may be helpful for some users and may not be helpful for others. If you find this feature insecure, then apply the below steps to disable it. After doing this, close your browser and re-open it. You will no longer be logged into your Gmail account. You will always be redirected to the Sign-in page every time.

Sign out of Gmail when closing Chrome

The Chrome browser also restores the Cookie Session when you reopen your Chrome browser. To avoid this, apply the below steps.

Sign out of Gmail when closing Safari

To delete the Cookie Session from your Safari browser, follow the simple instructions below.

Sign out of Gmail when closing Microsoft Edge

Your username and password are remembered by the Edge browser, so when you open the Gmail page next time, it automatically retrieves the information and fills out the account information itself. You just have to turn off the feature in the Edge browser, which saves your usernames and passwords. This does not save any of your username and password for any account you open in the Edge browser. I hope you get a solution for your desired browser, as I have described the ways for all popular and most used browsers. If I have missed any browser you are using, please let me know and I will help you solve your problem for your particular browser. Thank you. Also see:

How To Delete Auto-Fill Entries In Google ChromeHow To Create A New Microsoft Account Using Gmail IDHow to Enable or Disable In-Private Browsing in all BrowsersHow to Save, Remove, Edit Credit Card information in web browsersHow To Enable Or Disable JavaScript In Browsers (Chrome, Edge Firefox, Opera, Vivaldi)