Can I automatically sign out of Google on browser close, but keep my cookies?












1















I'm paranoid enough that I'd like to use two-factor authentication for my Google account and automatically sign out of Google on browser close. But I'm not paranoid enough to use two-factor authentication on my own personal computer.



I don't know of any way to satisfy both of these desires simultaneously. As far as I know, automatically signing out of Google requires clearing Google's cookies on browser close, but having Google's 2FA trust my personal computer requires saving Google's cookies across browser sessions.



Is there anyway to automatically sign out of Google on browser close while retaining Google's cookies (at least, the ones that tell Google's 2FA to trust my computer)?



I'm using Firefox 65.0 on Ubuntu 18.04.1, but I don't how to do this on any browser or OS.










share|improve this question













migrated from superuser.com Feb 3 at 14:26


This question came from our site for computer enthusiasts and power users.














  • 1





    This is an interesting "cross-site-scope" question. From the web apps applications point of view, I don't think that there is a setting to automatically delete selective cookies, maybe the web browser could do that and if not, then you should ask for a software recommendation.

    – Rubén
    Feb 3 at 15:34











  • Just a note on your choice of word "paranoid": I think 2FA is perfectly normal, even for low-profile people. A better description for need to use 2FA should be 'cautious'.

    – ahorn
    Mar 1 at 16:45











  • @ahorn Yes, I was being facetious with the word "paranoid". I'm surprised that there's no well-known solution to this problem, because I would've expected that my location on the cautiousness spectrum was a fairly common one. I guess most people who use 2FA don't bother to sign out on browser close.

    – tparker
    Mar 1 at 21:23











  • @tparker why do you want to sign out on your personal computers? Is this an extra security precaution, over and above the password you use to log in to your computer? Does your computer not automatically lock after a certain period of time?

    – ahorn
    Mar 2 at 4:24
















1















I'm paranoid enough that I'd like to use two-factor authentication for my Google account and automatically sign out of Google on browser close. But I'm not paranoid enough to use two-factor authentication on my own personal computer.



I don't know of any way to satisfy both of these desires simultaneously. As far as I know, automatically signing out of Google requires clearing Google's cookies on browser close, but having Google's 2FA trust my personal computer requires saving Google's cookies across browser sessions.



Is there anyway to automatically sign out of Google on browser close while retaining Google's cookies (at least, the ones that tell Google's 2FA to trust my computer)?



I'm using Firefox 65.0 on Ubuntu 18.04.1, but I don't how to do this on any browser or OS.










share|improve this question













migrated from superuser.com Feb 3 at 14:26


This question came from our site for computer enthusiasts and power users.














  • 1





    This is an interesting "cross-site-scope" question. From the web apps applications point of view, I don't think that there is a setting to automatically delete selective cookies, maybe the web browser could do that and if not, then you should ask for a software recommendation.

    – Rubén
    Feb 3 at 15:34











  • Just a note on your choice of word "paranoid": I think 2FA is perfectly normal, even for low-profile people. A better description for need to use 2FA should be 'cautious'.

    – ahorn
    Mar 1 at 16:45











  • @ahorn Yes, I was being facetious with the word "paranoid". I'm surprised that there's no well-known solution to this problem, because I would've expected that my location on the cautiousness spectrum was a fairly common one. I guess most people who use 2FA don't bother to sign out on browser close.

    – tparker
    Mar 1 at 21:23











  • @tparker why do you want to sign out on your personal computers? Is this an extra security precaution, over and above the password you use to log in to your computer? Does your computer not automatically lock after a certain period of time?

    – ahorn
    Mar 2 at 4:24














1












1








1








I'm paranoid enough that I'd like to use two-factor authentication for my Google account and automatically sign out of Google on browser close. But I'm not paranoid enough to use two-factor authentication on my own personal computer.



I don't know of any way to satisfy both of these desires simultaneously. As far as I know, automatically signing out of Google requires clearing Google's cookies on browser close, but having Google's 2FA trust my personal computer requires saving Google's cookies across browser sessions.



Is there anyway to automatically sign out of Google on browser close while retaining Google's cookies (at least, the ones that tell Google's 2FA to trust my computer)?



I'm using Firefox 65.0 on Ubuntu 18.04.1, but I don't how to do this on any browser or OS.










share|improve this question














I'm paranoid enough that I'd like to use two-factor authentication for my Google account and automatically sign out of Google on browser close. But I'm not paranoid enough to use two-factor authentication on my own personal computer.



I don't know of any way to satisfy both of these desires simultaneously. As far as I know, automatically signing out of Google requires clearing Google's cookies on browser close, but having Google's 2FA trust my personal computer requires saving Google's cookies across browser sessions.



Is there anyway to automatically sign out of Google on browser close while retaining Google's cookies (at least, the ones that tell Google's 2FA to trust my computer)?



I'm using Firefox 65.0 on Ubuntu 18.04.1, but I don't how to do this on any browser or OS.







firefox security browser cookies google-account






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 3 at 4:21









tparkertparker

1164




1164




migrated from superuser.com Feb 3 at 14:26


This question came from our site for computer enthusiasts and power users.









migrated from superuser.com Feb 3 at 14:26


This question came from our site for computer enthusiasts and power users.










  • 1





    This is an interesting "cross-site-scope" question. From the web apps applications point of view, I don't think that there is a setting to automatically delete selective cookies, maybe the web browser could do that and if not, then you should ask for a software recommendation.

    – Rubén
    Feb 3 at 15:34











  • Just a note on your choice of word "paranoid": I think 2FA is perfectly normal, even for low-profile people. A better description for need to use 2FA should be 'cautious'.

    – ahorn
    Mar 1 at 16:45











  • @ahorn Yes, I was being facetious with the word "paranoid". I'm surprised that there's no well-known solution to this problem, because I would've expected that my location on the cautiousness spectrum was a fairly common one. I guess most people who use 2FA don't bother to sign out on browser close.

    – tparker
    Mar 1 at 21:23











  • @tparker why do you want to sign out on your personal computers? Is this an extra security precaution, over and above the password you use to log in to your computer? Does your computer not automatically lock after a certain period of time?

    – ahorn
    Mar 2 at 4:24














  • 1





    This is an interesting "cross-site-scope" question. From the web apps applications point of view, I don't think that there is a setting to automatically delete selective cookies, maybe the web browser could do that and if not, then you should ask for a software recommendation.

    – Rubén
    Feb 3 at 15:34











  • Just a note on your choice of word "paranoid": I think 2FA is perfectly normal, even for low-profile people. A better description for need to use 2FA should be 'cautious'.

    – ahorn
    Mar 1 at 16:45











  • @ahorn Yes, I was being facetious with the word "paranoid". I'm surprised that there's no well-known solution to this problem, because I would've expected that my location on the cautiousness spectrum was a fairly common one. I guess most people who use 2FA don't bother to sign out on browser close.

    – tparker
    Mar 1 at 21:23











  • @tparker why do you want to sign out on your personal computers? Is this an extra security precaution, over and above the password you use to log in to your computer? Does your computer not automatically lock after a certain period of time?

    – ahorn
    Mar 2 at 4:24








1




1





This is an interesting "cross-site-scope" question. From the web apps applications point of view, I don't think that there is a setting to automatically delete selective cookies, maybe the web browser could do that and if not, then you should ask for a software recommendation.

– Rubén
Feb 3 at 15:34





This is an interesting "cross-site-scope" question. From the web apps applications point of view, I don't think that there is a setting to automatically delete selective cookies, maybe the web browser could do that and if not, then you should ask for a software recommendation.

– Rubén
Feb 3 at 15:34













Just a note on your choice of word "paranoid": I think 2FA is perfectly normal, even for low-profile people. A better description for need to use 2FA should be 'cautious'.

– ahorn
Mar 1 at 16:45





Just a note on your choice of word "paranoid": I think 2FA is perfectly normal, even for low-profile people. A better description for need to use 2FA should be 'cautious'.

– ahorn
Mar 1 at 16:45













@ahorn Yes, I was being facetious with the word "paranoid". I'm surprised that there's no well-known solution to this problem, because I would've expected that my location on the cautiousness spectrum was a fairly common one. I guess most people who use 2FA don't bother to sign out on browser close.

– tparker
Mar 1 at 21:23





@ahorn Yes, I was being facetious with the word "paranoid". I'm surprised that there's no well-known solution to this problem, because I would've expected that my location on the cautiousness spectrum was a fairly common one. I guess most people who use 2FA don't bother to sign out on browser close.

– tparker
Mar 1 at 21:23













@tparker why do you want to sign out on your personal computers? Is this an extra security precaution, over and above the password you use to log in to your computer? Does your computer not automatically lock after a certain period of time?

– ahorn
Mar 2 at 4:24





@tparker why do you want to sign out on your personal computers? Is this an extra security precaution, over and above the password you use to log in to your computer? Does your computer not automatically lock after a certain period of time?

– ahorn
Mar 2 at 4:24










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "34"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwebapps.stackexchange.com%2fquestions%2f124922%2fcan-i-automatically-sign-out-of-google-on-browser-close-but-keep-my-cookies%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Web Applications Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwebapps.stackexchange.com%2fquestions%2f124922%2fcan-i-automatically-sign-out-of-google-on-browser-close-but-keep-my-cookies%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

is 'sed' thread safe

How to make a Squid Proxy server?