Update README.md
Update the json format of session for file, redis, mysql, cookie, there are errors in these json string, such as after the param `ProviderConfig` and there is a lost of `"` in the line 61 of the `gclifetime`.
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -58,7 +58,7 @@ Then in you web app init the global session manager | ... | @@ -58,7 +58,7 @@ Then in you web app init the global session manager |
| 58 | 58 | ||
| 59 | func init() { | 59 | func init() { |
| 60 | globalSessions, _ = session.NewManager( | 60 | globalSessions, _ = session.NewManager( |
| 61 | "cookie", `{"cookieName":"gosessionid","enableSetCookie":false,gclifetime":3600,"ProviderConfig":"{\"cookieName\":\"gosessionid\",\"securityKey\":\"beegocookiehashkey\"}"}`) | 61 | "cookie", `{"cookieName":"gosessionid","enableSetCookie":false,"gclifetime":3600,"ProviderConfig":"{\"cookieName\":\"gosessionid\",\"securityKey\":\"beegocookiehashkey\"}"}`) |
| 62 | go globalSessions.GC() | 62 | go globalSessions.GC() |
| 63 | } | 63 | } |
| 64 | 64 | ... | ... |
-
Please register or sign in to post a comment