Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Implement SameSite directive for SetCookie #174

Closed
@jroedel

Description

@jroedel

I would like to use the SameSite directive when setting cookies in ZF3, but there doesn't seem to be an option to do so.

This should be a 10th parameter for the SetCookie constructor I guess.

Code to reproduce the issue (example constructor call)

$setCookie = new SetCookie($cookieName, $locale, null, $path, null, $secure, $httpOnly, $maxAge, $version, SetCookie::SAME_SITE_STRICT);

Expected results

This should set a cookie with the indicated SameSite directive

Actual results

Doesn't allow for specification

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions