From c3f77aa1168df9190e1ecf53c07c285149428342 Mon Sep 17 00:00:00 2001 From: Mike McNeil Date: Wed, 1 May 2024 12:10:27 -0500 Subject: [PATCH] Website: Clear personalization on logout (#18630) --- website/api/controllers/account/logout.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/api/controllers/account/logout.js b/website/api/controllers/account/logout.js index 8119faa6ef..cba2775be9 100644 --- a/website/api/controllers/account/logout.js +++ b/website/api/controllers/account/logout.js @@ -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.