Skip to content

Commit 4933f15

Browse files
authored
Merge pull request #217 from lafriks/fix/session_storage_after_logout
When storing new value in session use `New`
2 parents e9df47a + a0c8b22 commit 4933f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gothic/gothic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ func getProviderName(req *http.Request) (string, error) {
284284

285285
// StoreInSession stores a specified key/value pair in the session.
286286
func StoreInSession(key string, value string, req *http.Request, res http.ResponseWriter) error {
287-
session, _ := Store.Get(req, SessionName)
287+
session, _ := Store.New(req, SessionName)
288288

289289
if err := updateSessionValue(session, key, value); err != nil {
290290
return err

0 commit comments

Comments
 (0)