Skip to content

Bind cookies to app-year. #300

Open
Open
@timparenti

Description

Beyond the hotfix in #299, the application should be configured to change how cookies are stored should change with each app-year. It is not sufficient to simply use Date.current.year or similar in the cookie name, since the main problem manifests when users log in shortly before the app is re-seeded each April, at which point user IDs change while the cookies do not. However, there are many relevant timestamps in the database that could potentially help signal the year the app was built for.

Additionally, look into the possibility of storing more than just the user ID number in the cookie, to help detect when a cookie should go stale.

Activity

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

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