Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Problem with duration #144

Description

@uinstinct

Problem with duration

I tried this multiple times and now I really don't understand why this is happening?

const sessions=require('client-sessions'); app.use(sessions({ cookieName: 'usersession', secret:'keeping it secret', duration:1000*60*2, }));

In the above code, the duration shoud be 2 minutes.

But, it looks strange in the cookies storage in my browser.

image

The cookie should expire in 2 minutes.

The browser I am using is Firefox Developer Edition.

I tried the same in chrome but it shows the same.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions