clear cookie if non-existent session.

This commit is contained in:
Miroslav Šedivý
2021-03-25 10:29:28 +01:00
parent da1d073846
commit bf6181764b
4 changed files with 13 additions and 16 deletions

View File

@ -51,6 +51,6 @@ type SessionManager interface {
ImplicitHosting() bool
CookieSetToken(w http.ResponseWriter, token string)
CookieClearToken(w http.ResponseWriter)
CookieClearToken(w http.ResponseWriter, r *http.Request)
Authenticate(r *http.Request) (Session, error)
}