Skip to content

Commit

Permalink
Merge pull request #217 from lafriks/fix/session_storage_after_logout
Browse files Browse the repository at this point in the history
When storing new value in session use `New`
  • Loading branch information
adamo57 authored Apr 12, 2018
2 parents e9df47a + a0c8b22 commit 4933f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gothic/gothic.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func getProviderName(req *http.Request) (string, error) {

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

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

0 comments on commit 4933f15

Please sign in to comment.