Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
luosangnanka committed May 5, 2014
1 parent a56f67e commit 25768f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Then in you web app init the global session manager

func init() {
globalSessions, _ = session.NewManager(
"cookie", `{"cookieName":"gosessionid","enableSetCookie":false,gclifetime":3600,"ProviderConfig":"{\"cookieName\":\"gosessionid\",\"securityKey\":\"beegocookiehashkey\"}"}`)
"cookie", `{"cookieName":"gosessionid","enableSetCookie":false,"gclifetime":3600,"ProviderConfig":"{\"cookieName\":\"gosessionid\",\"securityKey\":\"beegocookiehashkey\"}"}`)
go globalSessions.GC()
}

Expand Down

0 comments on commit 25768f0

Please sign in to comment.