Skip to content

how to add expires/max-age to cookie instead of setting it at Expires/Cache-control header. #92

Open
@RamirezTuco

Description

@RamirezTuco

Hi,

We are the module nginx-secure-token-module and generating the CDN tokens as cookies.
However, the cookie set does not have any expires or max-age set, and browser interprets it as a session cookie.

Below is the header generated by the module.

Set-Cookie: hdnea=st=1614781275exp=1614867675acl=/*~hmac=c1234f5a6efb7b890ae10d3f45678ce90cc1b2345c6c3fc7bb89ebe01e23456c

We are looking for something so that we can change the Expires/Max-age in the cookie, like

Set-Cookie: hdnea=st=1614781275exp=1614867675acl=/*~hmac=c1234f5a6efb7b890ae10d3f45678ce90cc1b2345c6c3fc7bb89ebe01e23456c; max-age=3600; expires=1614867675

It seems 'secure_token_cookie_token_expires_time' is used for Expires and Cache-Control HTTP headers.

Is there some parameter to add expires/max-age to the cookie header as above instead of setting it at the Expires header level?

Can anyone help in this plz?

Thanks
Tuco

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions