From dcfc7a569a6e71bff68624d58516c1ef39eef269 Mon Sep 17 00:00:00 2001 From: Rodrigo Menezes Date: Fri, 12 Aug 2022 09:04:50 -0400 Subject: [PATCH 1/3] Add missing documentation for README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7e72c2a..bfbad35 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ The name of the session cookie. Defaults to `sessionId`. The options object is used to generate the `Set-Cookie` header of the session cookie. May have the following properties: * `path` - The `Path` attribute. Defaults to `/` (the root path). * `maxAge` - A `number` in milliseconds that specifies the `Expires` attribute by adding the specified milliseconds to the current date. If both `expires` and `maxAge` are set, then `maxAge` is used. +* `rolling` - Forces the session identifier cookie to be set on every response. The expiration is reset to the original maxAge, resetting the expiration countdown. This is typically used in conjuction with short, non-session-length maxAge values to provide a quick timeout of the session data with reduced potential of it occurring during on going server interactions. Defaults to true. * `httpOnly` - The `boolean` value of the `HttpOnly` attribute. Defaults to true. * `secure` - The `boolean` value of the `Secure` attribute. Set this option to false when communicating over an unencrypted (HTTP) connection. Value can be set to `auto`; in this case, the `Secure` attribute will be set to false for an HTTP request. In the case of HTTPS, it will be set to true. Defaults to true. * `expires` - The expiration `date` used for the `Expires` attribute. If both `expires` and `maxAge` are set, then `maxAge` is used. From 9d37dba935d1a0e46eb516743c2cb9017bd97e16 Mon Sep 17 00:00:00 2001 From: Uzlopak Date: Fri, 12 Aug 2022 17:52:21 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bfbad35..9dd7988 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ The name of the session cookie. Defaults to `sessionId`. The options object is used to generate the `Set-Cookie` header of the session cookie. May have the following properties: * `path` - The `Path` attribute. Defaults to `/` (the root path). * `maxAge` - A `number` in milliseconds that specifies the `Expires` attribute by adding the specified milliseconds to the current date. If both `expires` and `maxAge` are set, then `maxAge` is used. -* `rolling` - Forces the session identifier cookie to be set on every response. The expiration is reset to the original maxAge, resetting the expiration countdown. This is typically used in conjuction with short, non-session-length maxAge values to provide a quick timeout of the session data with reduced potential of it occurring during on going server interactions. Defaults to true. +* `rolling` - Forces the session identifier cookie to be set on every response. The expiration is reset to the original maxAge and resetting the cookie lifetime. This is typically used in conjuction with short, non-session-length maxAge values to provide a quick expiration of the session data with reduced potential of session expiration occurring during ongoing server interactions. Defaults to true. * `httpOnly` - The `boolean` value of the `HttpOnly` attribute. Defaults to true. * `secure` - The `boolean` value of the `Secure` attribute. Set this option to false when communicating over an unencrypted (HTTP) connection. Value can be set to `auto`; in this case, the `Secure` attribute will be set to false for an HTTP request. In the case of HTTPS, it will be set to true. Defaults to true. * `expires` - The expiration `date` used for the `Expires` attribute. If both `expires` and `maxAge` are set, then `maxAge` is used. From efe4223511ab02accd32ccd709bd0b8f40fd2970 Mon Sep 17 00:00:00 2001 From: Uzlopak Date: Fri, 12 Aug 2022 17:53:39 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9dd7988..d222938 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ The name of the session cookie. Defaults to `sessionId`. The options object is used to generate the `Set-Cookie` header of the session cookie. May have the following properties: * `path` - The `Path` attribute. Defaults to `/` (the root path). * `maxAge` - A `number` in milliseconds that specifies the `Expires` attribute by adding the specified milliseconds to the current date. If both `expires` and `maxAge` are set, then `maxAge` is used. -* `rolling` - Forces the session identifier cookie to be set on every response. The expiration is reset to the original maxAge and resetting the cookie lifetime. This is typically used in conjuction with short, non-session-length maxAge values to provide a quick expiration of the session data with reduced potential of session expiration occurring during ongoing server interactions. Defaults to true. +* `rolling` - Forces the session identifier cookie to be set on every response. The expiration is reset to the original maxAge - effectively resetting the cookie lifetime. This is typically used in conjuction with short, non-session-length maxAge values to provide a quick expiration of the session data with reduced potential of session expiration occurring during ongoing server interactions. Defaults to true. * `httpOnly` - The `boolean` value of the `HttpOnly` attribute. Defaults to true. * `secure` - The `boolean` value of the `Secure` attribute. Set this option to false when communicating over an unencrypted (HTTP) connection. Value can be set to `auto`; in this case, the `Secure` attribute will be set to false for an HTTP request. In the case of HTTPS, it will be set to true. Defaults to true. * `expires` - The expiration `date` used for the `Expires` attribute. If both `expires` and `maxAge` are set, then `maxAge` is used.