mirror of
https://github.com/astaxie/beego.git
synced 2024-11-23 03:30:57 +00:00
fix #833
This commit is contained in:
parent
a760e46f98
commit
8af0475251
2
beego.go
2
beego.go
@ -378,7 +378,7 @@ func initBeforeHttpRun() {
|
|||||||
if sessionConfig == "" {
|
if sessionConfig == "" {
|
||||||
sessionConfig = `{"cookieName":"` + SessionName + `",` +
|
sessionConfig = `{"cookieName":"` + SessionName + `",` +
|
||||||
`"gclifetime":` + strconv.FormatInt(SessionGCMaxLifetime, 10) + `,` +
|
`"gclifetime":` + strconv.FormatInt(SessionGCMaxLifetime, 10) + `,` +
|
||||||
`"providerConfig":"` + SessionSavePath + `",` +
|
`"providerConfig":"` + filepath.ToSlash(SessionSavePath) + `",` +
|
||||||
`"secure":` + strconv.FormatBool(EnableHttpTLS) + `,` +
|
`"secure":` + strconv.FormatBool(EnableHttpTLS) + `,` +
|
||||||
`"sessionIDHashFunc":"` + SessionHashFunc + `",` +
|
`"sessionIDHashFunc":"` + SessionHashFunc + `",` +
|
||||||
`"sessionIDHashKey":"` + SessionHashKey + `",` +
|
`"sessionIDHashKey":"` + SessionHashKey + `",` +
|
||||||
|
Loading…
Reference in New Issue
Block a user