sessions
sessions copied to clipboard
Package gorilla/sessions provides cookie and filesystem sessions and infrastructure for custom session backends.
// Add a value session.Values["foo"] = "bar" // Save session if err = sessions.Save(req, w); err != nil { log.Fatal("failed saving session: ", err) } when the "bar" is interface{},the...
**Describe the bug** When a single pair of an authentication key and encryption key is used - changing it prevents the signed in user from accessing the webpage again. **Versions**...
The SameSite patch in #165 and #170 forgot to initialize SameSite to a value in the default path. I think the intent was to initialize it to http.SameSiteDefaultMode. Currently this...
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...
I use gorilla mux. When I access the flash message. The flash message is always stored and cannot be lost. Is there any solution ? ``` var SessionCookie = newCookieStore()...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior Using the file store `sessions.NewFilesystemStore("", []byte("secret"))` and saving a new session...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior I wrote Gorilla Sessions to manage login and logout sessions a...
securecookie: error - caused by: gob: name not registered for interface: "map[string]map[int]string"
**Problem** > Hi! I was trying to run my code, but it appears this error: > `securecookie: error - caused by: gob: name not registered for interface: "map[string]map[int]string"` > I've...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior Getting following issue while get this package and building because of...
## What type of PR is this? (check all applicable) - [ ] Refactor - [ ] Feature - [X] Bug Fix - [ ] Optimization - [ ] Documentation...