Skip to content

Commit

Permalink
fix: studio connect session (vesoft-inc#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
nianiaJR authored Mar 24, 2021
1 parent 75b9e5b commit e9eed35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ nebula-httpd

# Dependency directories (remove the comment below to include it)
# vendor/
tmp/
tmp/*
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (
)

func main() {
beego.BConfig.WebConfig.Session.SessionCookieLifeTime = 3600
beego.BConfig.WebConfig.Session.SessionCookieLifeTime = 0
beego.BConfig.WebConfig.Session.SessionGCMaxLifetime = 60 * 60 * 24
beego.BConfig.WebConfig.Session.SessionName = "nsid"
beego.BConfig.WebConfig.Session.SessionOn = true
beego.Run()
Expand Down
Binary file modified tmp/runner-build
Binary file not shown.

0 comments on commit e9eed35

Please sign in to comment.