getkirby-v2 / toolkit

This is the deprecated toolkit for Kirby v2.

Home Page:http://getkirby.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

security headers for cookies. secure and httponly?

bnomei opened this issue · comments

i am using kirby for a ssl enabled (letsencrypt, c::set('ssl', true) ) website.
but i get warnings for cookie http headers, whats wrong?

maybe case httpOnly must match or missing semicolon?

Set-Cookie

kirby_session=6u6hb25027kqkud167gkt3ol85; path=/
kirby_session=6u6hb25027kqkud167gkt3ol85; path=/; secure; httponly

Well, that's strange. Kirby should not set two cookies, only one. I will investigate.

However, we had issues with 2 Cookies in the past: https://forum.getkirby.com/t/set-cookie-twice/5444?