Skip to content

$input->cookie->set() sets wrong expiry by default #2130

@Toutouwai

Description

@Toutouwai

The docs for WireInputDataCookie::set() say that if the age option is omitted then the default is "0, expire with session".

But actually the expiry set to the cookie ends up being 1 week. This seems to be coming from $config->cookieOptions in /wire/config.php

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions