From a6d0a5da46f32d169ba4996f0e8fc56e3f4c9318 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Thu, 20 Sep 2018 23:17:40 +0300 Subject: [PATCH] Update context.js --- lib/context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/context.js b/lib/context.js index 90c0c32..0b80a6d 100644 --- a/lib/context.js +++ b/lib/context.js @@ -272,7 +272,7 @@ class ContextSession { const externalKey = this.externalKey; if (externalKey) await this.store.destroy(externalKey); - ctx.cookies.set(key, '', opts); + ctx.cookies.set(key, '', { maxAge: -1 }); } /**