Skip to content

Add convenience method to get session TTL #11

@theetrain

Description

@theetrain

Hello, thanks for this utility.

I'm using sessionManager to store a cached copy of a session managed by a separate service. It would be helpful to have convenience methods to compare it with the session used by my external service, including:

  • sessionManager.ttl() - get the remaining ttl of the current session

My current workaround is to reuse the redis client to fetch the TTL manually from the cookie value.

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