diff options
author | Wenhui Shen <swhbox@foxmail.com> | 2016-02-18 16:29:43 +0300 |
---|---|---|
committer | Wenhui Shen <swhbox@foxmail.com> | 2016-02-18 16:29:43 +0300 |
commit | 56d6ae1dcfd0714b25b3b682a40b67d9542445ee (patch) | |
tree | 0a2ef1016db02884056b71e804d8e566d15dca59 | |
parent | 84f333210a31953ee5e24f3dc1b42a5a1c8e145b (diff) |
update
-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" |