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

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