Skip to content

Login session ends when browser session ends, cookie maxAge ignored  #2365

@zivchen

Description

@zivchen

New Issue Checklist

Issue Description

cookie-session - maxAge property has no effect, at the moment its in an object

Steps to reproduce

Just open chrome inspect elements and see that the cookie expires on session

Actual Outcome

cookie expires on session

Expected Outcome

cookie will expire in 2 weeks

Environment

Dashboard

  • Parse Dashboard version: 5.0.0
  • Browser (Safari, Chrome, Firefox, Edge, etc.): Chrome, Firefox (all...)
  • Browser version: ``

The problem is at Authentication.js row 59, maxAge should be a prop of the configuration object and not nested in cookie :{}

See actual API
https://github.com/expressjs/cookie-session

A feature request for this bug will be to have maxAge property via config

Would love to make a PR...

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