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
















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














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














  • 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








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










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 do I know what Microsoft account the skydrive app is syncing to?

Grease: Live!

When does type information flow backwards in C++?