change session cookie name to sid

Signed-off-by: He Weiwei <hweiwei@vmware.com>
This commit is contained in:
He Weiwei 2018-11-29 15:18:15 +08:00
parent 5ceebcbb10
commit 00a3948fff

View File

@ -72,6 +72,7 @@ func updateInitPassword(userID int, password string) error {
func main() {
beego.BConfig.WebConfig.Session.SessionOn = true
beego.BConfig.WebConfig.Session.SessionName = "sid"
// TODO
redisURL := os.Getenv("_REDIS_URL")
if len(redisURL) > 0 {