You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Session, calling session.renew() always renews the session, indepentent of it's location in the handler (unless there is a session.purge()).
Actual Behavior
When calling session.set("x", "y") after session.renew(), the session does not get renewed.
From my understanding of the code, this is caused by this line in session.set() (and session.remove()):
This unconditionally overwrites the status and deletes the information that a session renew was requested. What I think should happen instead is that it only overwrites the status if it is currently set to Unchanged.
Expected Behavior
When using Session, calling
session.renew()
always renews the session, indepentent of it's location in the handler (unless there is asession.purge()
).Actual Behavior
When calling
session.set("x", "y")
aftersession.renew()
, the session does not get renewed.From my understanding of the code, this is caused by this line in
session.set()
(andsession.remove()
):poem/poem/src/session/session.rs
Line 85 in ad20fe7
This unconditionally overwrites the status and deletes the information that a session renew was requested. What I think should happen instead is that it only overwrites the status if it is currently set to
Unchanged
.Steps to Reproduce the Problem
Note that swapping line
A
andB
seems to work fine.Specifications
The text was updated successfully, but these errors were encountered: