Repository navigation
Replies: 1 comment
|
It is wired up. It just doesn't touch "Remember me" controls the lifetime of the session cookie ( if (req.body.remember) {
req.session!.cookie.maxAge = 24 * 60 * 60 * 1000 * 30; // Expire in 30 days
} else {
req.session!.cookie.expires = undefined;
}
A reload keeps session cookies either way, so steps 3 and 4 behave the same. To see the difference, open DevTools → Application → Cookies and compare the Expires column for The The repo already tests the checked case in cy.getCookie("connect.sid").should("have.property", "expiry");For practice, you could add the mirror test for the unchecked case: log in with cy.getCookie("connect.sid").should("not.have.property", "expiry");===== |
Uh oh!
There was an error while loading. Please reload this page.
Hello! I've been using this repo for Cypress practice and noticed that checking/unchecking "Remember me" on the sign in form does not change how the session persists.
Steps:
value: "authorized"Is this an intentional simplification for the demo app, or is the checkbox meant to be wired to something that just hasn't been implemented yet?
All reactions