I have to log in to github.com very frequently. I was previously signed in on the browser, but some time in the future I'll visit GitHub again and I'm not signed in. How can I stay logged in to GitHub longer?

Looking at https://github.com/settings/security, I count 12 "user.login" events since the table starts on August 29, which averages to more than once per week needing to enter my password and TOTP code.

I have a lot of devices (multiple work and personal devices with different chrome profiles, 11 sessions at most, but more often about 6), but I hope that wouldn't cause the problem.

When I open the cookies for github.com, I can see the user_session cookies is only set for 15 days in the future -- is that how long the default GitHub login lasts? Maybe there's some knob to increase that? (I'd be willing to change my 2FA option to security key if that had made the login last at least 90 days.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.