Last active
February 25, 2025 07:56
-
-
Save eatnumber1/92e94086dafc7194077df4a6b45b2b75 to your computer and use it in GitHub Desktop.
Stateless Nginx Cookie Authentication
No real reason I think. Should be fine to make it variable. Try it out, and if it works, send a pull request / report back?
Seems to work with the parametrized max-age.
Apparently PR's aren't supported with gists, but here's the updated version in case you want to take a look / update yours: https://gist.github.com/lobstaj/adbb9e98cdd3f37f2bdce865ba95c603
Merged. Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very nice, just what I needed!
Any particular reason you hard-coded the cookie's max-age?