aboutsummaryrefslogtreecommitdiff
path: root/sessions.go
diff options
context:
space:
mode:
authorWenhui Shen <swhbox@foxmail.com>2016-02-18 16:29:43 +0300
committerWenhui Shen <swhbox@foxmail.com>2016-02-18 16:29:43 +0300
commit56d6ae1dcfd0714b25b3b682a40b67d9542445ee (patch)
tree0a2ef1016db02884056b71e804d8e566d15dca59 /sessions.go
parent84f333210a31953ee5e24f3dc1b42a5a1c8e145b (diff)
update
Diffstat (limited to 'sessions.go')
-rw-r--r--sessions.go4
1 files changed, 3 insertions, 1 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 {