8000 [core] Fix `Cookie` `maxAge` docs by Petersoj · Pull Request #2357 · javalin/javalin · GitHub
[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Fix Cookie maxAge docs #2357

Merged
merged 1 commit into from
Jan 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[core] Fix Cookie maxAge docs
  • Loading branch information
Petersoj committed Jan 13, 2025
commit a3636e5b90cd5891a83fa2c691443c1fbd696a73
3 changes: 2 additions & 1 deletion javalin/src/main/java/io/javalin/http/Cookie.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ enum class SameSite(val value: String) {
* @param path indicates the path that must exist in the requested URL for the browser to
* send the Cookie header. (default = "/")
* @param maxAge indicates the number of seconds until the cookie expires.
* A zero or negative number will expire the cookie immediately. (default = -1)
* A negative value means that the cookie is not stored persistently and will be deleted
* when the Web browser exits. A zero value causes the cookie to be deleted. (default = -1)
* @param secure indicates that the cookie is sent to the server only when a request is
* made with the https: scheme (except on localhost), and therefore, is more resistant
* to man-in-the-middle attacks (default: false)
Expand Down
Loading
0