react-session icon indicating copy to clipboard operation
react-session copied to clipboard

Feature num days dynamic

Open iyunusov opened this issue 2 years ago • 1 comments

COOKIE_EXPIRATION_DAYS was set to be for 7 days static value. This PR intends to set expiration days to be indefinite by default (max possible Tue Jan 19 2038 for 32-bit systems ref)

Otherwise expiration days can be given as a third param to the session like:ReactSession.set(paramName, paramValue, numberOfDays) of the CookieStorage

iyunusov avatar Sep 11 '22 08:09 iyunusov

Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset.

All security workflows are defined in a centralized repository named .jit. In case there are security findings, they will be communicated to you as a comment inside the PR.

Hope you’ll enjoy using Jit.

Questions? Comments? Want to learn more? Get in touch with us.

jit-ci[bot] avatar Sep 11 '22 08:09 jit-ci[bot]