Update README.md
Update the json format of session for redis, there is an error in that json string
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -42,7 +42,7 @@ Then in you web app init the global session manager | ... | @@ -42,7 +42,7 @@ Then in you web app init the global session manager |
| 42 | * Use **Redis** as provider, the last param is the Redis conn address,poolsize,password: | 42 | * Use **Redis** as provider, the last param is the Redis conn address,poolsize,password: |
| 43 | 43 | ||
| 44 | func init() { | 44 | func init() { |
| 45 | globalSessions, _ = session.NewManager("redis", `{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig","127.0.0.1:6379,100,astaxie"}`) | 45 | globalSessions, _ = session.NewManager("redis", `{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"127.0.0.1:6379,100,astaxie"}`) |
| 46 | go globalSessions.GC() | 46 | go globalSessions.GC() |
| 47 | } | 47 | } |
| 48 | 48 | ... | ... |
-
Please register or sign in to post a comment