We've been doing a lot of gerrit restarts recently. It seems that sometimes that means people lose their web sessions and have to login again; however, this should not be the case.
The web_session cache persists to disk and sessions should stay valid for 90 days.
[cache "web_sessions"]
maxAge = 90 days
memoryLimit = 2048
diskLimit = 256m