1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-20 00:39:17 +08:00
1Panel/core/init/session/session.go

13 lines
304 B
Go
Raw Normal View History

2024-07-19 19:04:11 +08:00
package session
import (
"github.com/1Panel-dev/1Panel/core/global"
"github.com/1Panel-dev/1Panel/core/init/session/psession"
"path"
2024-07-19 19:04:11 +08:00
)
func Init() {
global.SESSION = psession.NewPSession(path.Join(global.CONF.System.BaseDir, "1panel/db/session.db"))
2024-07-19 19:04:11 +08:00
global.LOG.Info("init session successfully")
}