-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: rotate session id proactively #1512
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
if (isArray(sessionIdInfo) && sessionIdInfo.length === 2) { | ||
// Storage does not yet have a session start time. Add the last activity timestamp as the start time | ||
sessionId.push(sessionId[0]) | ||
sessionIdInfo.push(sessionIdInfo[0]) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NB we can probably remove this upgrade code now but I won't do it here, a lot of time of passed since we added this
Size Change: +2 kB (+0.06%) Total Size: 3.21 MB
ℹ️ View Unchanged
|
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the |
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the |
I agree but, we know the problem exists, we cannot reproduce it, so every small interaction may lead to fixing it. |
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the |
This PR was closed due to lack of activity. Feel free to reopen if it's still relevant. |
We reviewed the session idle timeout code and some of the naming was off, so this changes the names
We also periodically get reports that some events sneak through after many tens of hours of idle activity before the session id rotates. This is very surprising from reading the code but is clearly happening, let's make it (even more) impossible by:
What I'm worried about here after talking it through with @robbie-c in person is that the code makes sense but we don't know it will fix the problem since we don't know what the problem is 🤔