Website: Clear personalization on logout (#18630)

This commit is contained in:
Mike McNeil 2024-05-01 12:10:27 -05:00 committed by GitHub
parent 9d8372c192
commit c3f77aa116
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,6 +37,9 @@ actually logged in. (If they weren't, then this action is just a no-op.)`,
// Clear the `userId` property from this session.
delete this.req.session.userId;
// Clear personalization from liu're session.
delete this.req.session.primaryBuyingSituation;
// Then finish up, sending an appropriate response.
// > Under the covers, this persists the now-logged-out session back
// > to the underlying session store.