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 }); } /**