1
0
mirror of https://github.com/astaxie/beego.git synced 2025-09-16 00:22:10 +00:00

xsrf change to randstr and cookie set to security cookie

This commit is contained in:
astaxie
2013-09-25 23:05:47 +08:00
parent 2249d745d9
commit 93e1206d60
4 changed files with 138 additions and 9 deletions

View File

@@ -67,7 +67,7 @@ func Run() {
}
if SessionOn {
GlobalSessions, _ = session.NewManager(SessionProvider, SessionName, SessionGCMaxLifetime, SessionSavePath)
GlobalSessions, _ = session.NewManager(SessionProvider, SessionName, SessionGCMaxLifetime, SessionSavePath, HttpTLS)
go GlobalSessions.GC()
}