Karmabunny / sprout3

SproutCMS: content management and framework
http://getsproutcms.com
GNU General Public License v2.0
24 stars 3 forks source link

Session cookie fixes #46

Closed TheJosh closed 4 years ago

TheJosh commented 4 years ago

Fix-ups so that the cookie.path, cookie.domain, and cookie.secure flags are properly respected for the session cookies.

Security improvement by sending the httponly flag for session cookies, which means the cookies are only provided over http requests, but cannot be read by JavaScript code.

Don't re-send the cookie in every request, the php session handler does this automatically (note - not tested with alternate session handlers).