mirror of https://github.com/gorilla/sessions
Browse Source
Summary of Changes Don't consider "oserror.ErrNotExist" as a failure when trying to erase a session which corresponds to a missing file. Hello, in the current implementation, if a request contains a session token that has been stored in a file that has been deleted and we're trying to erase it using the Options.MaxAge = -1 workaround, the action still fails, because the missing file error gets propagated higher in the stack. This small fix prevents this, and ensures that the session is regenerated. ___ This is a reopen of #237 which was closed by the stale bot. Co-authored-by: Corey Daley <cdaley@redhat.com>pull/268/head
Marius Orcsik
1 year ago
committed by
GitHub
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue