mirror of
https://github.com/astaxie/beego.git
synced 2025-07-04 09:30:17 +00:00
xsrf change to randstr and cookie set to security cookie
This commit is contained in:
2
beego.go
2
beego.go
@ -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()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user