users keep getting logged out #49
Open
opened 2026-05-06 14:09:51 +00:00 by ammaratef45
·
4 comments
No Branch/Tag Specified
master
upgrade-2f64ddf
master2
lfs
main
fix-domain
stop-first
config-update
renovate/configure
3.6.4+1.27.2-rootless
3.6.3+1.27.1-rootless
3.6.2+1.27.1-rootless
3.6.1+1.26.2-rootless
3.6.0+1.24.2-rootless
3.5.3+1.24.2-rootless
3.5.2+1.24.2-rootless
3.5.1+1.24.2-rootless
3.5.0+1.24.2-rootless
3.4.0+1.24.2-rootless
3.3.1+1.23.8-rootless
3.3.0+1.23.1-rootless
3.2.0+1.23.1-rootless
3.1.1+1.23.1-rootless
3.1.0+1.23.0-rootless
3.0.3+1.22.6-rootless
3.0.2+1.22.6-rootless
3.0.1+1.22.3-rootless
3.0.0+1.22.2-rootless
2.11.0+1.22.2-rootless
2.10.1+1.22.2-rootless
2.10.0+1.22.1-rootless
2.9.1+1.22.0-rootless
2.9.0+1.22.0-rootless
2.8.0+1.21.11-rootless
2.7.0+1.21.11-rootless
2.6.2+1.21.10-rootless
2.6.1+1.21.10-rootless
2.6.0+1.21.5-rootless
2.5.2+1.21.5-rootless
2.5.1+1.21.4-rootless
2.5.0+1.21.1-rootless
2.4.0+1.21.0-rootless
2.3.3+1.20.5-rootless
2.3.1+1.20.1-rootless
2.3.2+1.20.3-rootless
2.1.2+1.19.3-rootless
1.3.1+1.17.3-rootless
2.3.0+1.20.1-rootless
2.2.0+1.19.3-rootless
2.1.0+1.18.5-rootless
2.0.1+1.18.2-rootless
2.0.0+1.18.0-rootless
1.3.0+1.17.2-rootless
1.2.1+1.16.8-rootless
1.2.0+1.16.3-rootless
1.1.3+1.15.10-rootless
1.1.2+1.15.6-rootless
1.1.1+1.15.3-rootless
1.1.0+1.15.0-rootless
1.0.0+1.14.5-rootless
Labels
No items
No labels
Milestone
No items
No Milestone
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
appletalk
arjan
basebuilder
BornDeleuze
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
iexos
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting
tobias
trav (Trav Fryer)
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/gitea#49
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
fauno: is it possible that [gitea] keeps logged in accounts after restarts? i have to re-log in almost every day
ammar: I did a quick internet search and seems like the LOGIN_REMEMBER_DAYS value defaults to 31 days and we didn't override this in our deployed app
Wondering what else could be at play here
fauno: i imagine it's some token used to sign/validate cookies that's not being persisted
ammar: Im checking the cookies I have on my browser and they don't include a cookie called gitea_incredible people refer to in this and this threads
ammar: Hmmm there is also the session provider that seems to point to memory by default and is not configured by the recipe (https://docs.gitea.com/administration/config-cheat-sheet#session-session)
It turns out, I wasn't letting the browser keep cookies to begin with
This eliminating some hypothesis and taking away my assumed reproduction case
Now I need to reproduce or dig deeper into settings and cookies ... etc
@fauno if you have any notes on the reported behavior it would be really helpful (Is it always after a restart? is there a noticeable cadence? is your account living native to gitea or as a remote account? do you know someone else that sees it and have similar and/or different observations to all of these?)
ofc this is a lot to ask so basically just what you know or remember, and I'll post it on matrix to solicit engagement as well.
Thanks! I think I figured out a lead with the help of a comment from @jade.
https://git.coopcloud.tech/-/admin/config
https://docs.gitea.com/administration/config-cheat-sheet#session-session
Can someone get a PR out to configure the session management to not use memory?
And let's set
LOGIN_REMEMBER_DAYSto "forever" to make up for all the log ins 😆i just made the forgejo session manager configurable the other day, maybe you can cherry pick here?
coop-cloud/forgejo#31
to answer the question, i remember it happens almost everyday i come here looking for something and i have to re-login. not today though. i created this account with the gitlab provider.