change session name

This commit is contained in:
mhsanaei
2024-07-05 14:33:04 +02:00
parent 24b9e5bfa3
commit 02ae61fe6b
4 changed files with 15 additions and 12 deletions

View File

@@ -180,7 +180,7 @@ func (s *Server) initRouter() (*gin.Engine, error) {
assetsBasePath := basePath + "assets/"
store := cookie.NewStore(secret)
engine.Use(sessions.Sessions("session", store))
engine.Use(sessions.Sessions("3x-ui", store))
engine.Use(func(c *gin.Context) {
c.Set("base_path", basePath)
})