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

Secure session cookies, tested #67

Closed
wants to merge 3 commits into from
Closed

Secure session cookies, tested #67

wants to merge 3 commits into from

Conversation

amenonsen
Copy link
Contributor

Three commits, including the one submitted last time, plus Mojo::CookieJar changes and tests.

Now one can call $app->sessions->secure(1) in startup, and session
cookies will be marked HTTPS-only.
Mojo::CookieJar->find now returns secure cookies only for HTTPS URLs
and httponly cookies only for HTTP URLs.

This patch also fixes a bug where cookies with non-standard ports were
treated as if they had expired, as demonstrated by the new test case.
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant