summaryrefslogtreecommitdiff
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
parent84f333210a31953ee5e24f3dc1b42a5a1c8e145b (diff)
update
-rw-r--r--sessions.go4
-rw-r--r--store.go1
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 {
diff --git a/store.go b/store.go
index a279d53..88d2e65 100644
--- a/store.go
+++ b/store.go
@@ -7,7 +7,6 @@ package sessions
import (
"encoding/base32"
"io/ioutil"
- "net/http"
"os"
"path/filepath"
"strings"