Skip to content

Mixup of seconds and milliseconds in cleanup job for in memory session handler #76

@andreaswarvsten

Description

@andreaswarvsten

Hi, there looks to be an error in the cleanup method for the InMemorySessionHandler, when we check for an expired TimeOutWrapper. The delay parameter is being passed in seconds, instead of milliseconds. This causes the user to be logged out every time the cleanup job runs, unless they have accessed the TimeOutWrapper 1.8 seconds before (If we go by the default settings).

Class: InMemorySessionHandler.java
Method: cleanup(Map<E, TimeOutWrapper> map, long cleanupDelay, String msg)
-> tow.isExpired(cleanupDelay)

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