diff options
-rw-r--r-- | sessions.go | 4 | ||||
-rw-r--r-- | store.go | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sessions.go b/sessions.go index b6db0e1..39930cf 100644 --- a/sessions.go +++ b/sessions.go @@ -116,7 +116,9 @@ type sessionInfo struct { type contextKey int // registryKey is the key used to store the registry in the context. -const registryKey contextKey = 0 +//const registryKey contextKey = 0 + +const registryKey = `webx:sessionsRegistry` // GetRegistry returns a registry instance for the current request. func GetRegistry(context echo.Context) *Registry { @@ -7,7 +7,6 @@ package sessions import ( "encoding/base32" "io/ioutil" - "net/http" "os" "path/filepath" "strings" |