Under Processes, look for Google Chrome or. I can live with the fact that Firefox / Chrome will remember session cookies for tabs that are open, but what I don't understand is why they remember session cookies for my site even when the tab is closed before closing the browser. To see if Chromes open and force quit, follow the steps below for your operating system.
HOW TO FORCE CHOME TO CLOSE IN SCRIPTCASE HOW TO
I found out how to make the login expire after a given time using session.permanent = True and then setting app.permanent_session_lifetime = 'so many minutes/seconds', which works perfectly, but isn't what I want. I examine the value of login_fresh() which returns true if the login is fresh, and it still returns True. I have played around with the idea of fresh logins with the Flask-Login extension thinking that closing the tab before closing the browser would surely mark the session as stale, but it doesn't. However with both Firefox and Chrome the session-only cookie is still active when the browser is started again and I navigate to the page that is marked as I should also mention that I am passing False to the login_user remember argument like so: login_user(user, remember=False) So if you are authenticated and then close the tab, and then close the browser, the browser should only restore the session-only cookies for tabs that were open when the browser closed. There are two ways to use an image instead of the button. Instead of the default gray submit button, you may like to use an image. All the research I have done on this site and elsewhere indicates that these settings should only work for open tabs. See the code in action Using image for submitting the form. Under 'Processes', look for 'Google Chrome' or 'chrome.exe'. To see if Chrome's open and force quit, follow the steps below for your operating system. The issue that has me stumped involves the "Show my windows and tabs from last time" setting in Firefox and the "Continue where I left off" setting in Chrome. Chrome might already be running in the background on your computer. I can make basic authentication work as expected. I have been trying to learn Flask, and along the way the Flask-Login extension.