diff --git a/lib/router.auth.js b/lib/router.auth.js index e92ad5183..b7c6cdd76 100644 --- a/lib/router.auth.js +++ b/lib/router.auth.js @@ -295,7 +295,13 @@ module.exports = function (app) { } req.session.cookie.maxAge = maxAge; - res.cookie("x-thx-core", maxAge, { + + // Which one is it? + // Set-Cookie: x-thx-core=1209600000; Max-Age=1209600; Domain=.thinx.cloud; Path=/; Expires=Sun, 03 Dec 2023 13:24:00 GMT; HttpOnly + // Set-Cookie: x-thx-core=s%3AubrjzYSeAG-GTmhTaEmLOWHlQpUnUmaF.ZYYBEzLo3bWPOhwaHqIwlOUV8XcW8U%2FimX2Gd6u9NQQ; Domain=.thinx.cloud; Path=/; Expires=Sun, 03 Dec 2023 13:24:00 GMT; HttpOnly + + // This seems to create invalid session cookie + res.cookie("x-thx-ignored", maxAge, { maxAge: maxAge, httpOnly: true, secure: false, diff --git a/thinx-core.js b/thinx-core.js index 9426beb0d..4a2b6d197 100644 --- a/thinx-core.js +++ b/thinx-core.js @@ -390,7 +390,7 @@ module.exports = class THiNX extends EventEmitter { httpOnly: true, domain: short_domain }, - name: "x-thx-core", + name: "x-thx-wscore", resave: true, rolling: true, saveUninitialized: true