mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
A big refactoring for how sessions are handled, Api calls that authenticate with api key will no longer create a new session
This commit is contained in:
@@ -254,6 +254,7 @@ func readSessionConfig() {
|
||||
SessionOptions.Secure = sec.Key("cookie_secure").MustBool()
|
||||
SessionOptions.Gclifetime = Cfg.Section("session").Key("gc_interval_time").MustInt64(86400)
|
||||
SessionOptions.Maxlifetime = Cfg.Section("session").Key("session_life_time").MustInt64(86400)
|
||||
SessionOptions.IDLength = 16
|
||||
|
||||
if SessionOptions.Provider == "file" {
|
||||
os.MkdirAll(path.Dir(SessionOptions.ProviderConfig), os.ModePerm)
|
||||
|
||||
Reference in New Issue
Block a user