Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-07-05 15:33:04 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-07-05 15:33:04 +0300
commit02ae61fe6beb68ab8e5859a5eaa2b68514c0b454 (patch)
tree16ba0c036275bad58ec5037623f819414874062d /web/web.go
parent24b9e5bfa377f32e0942fbc9a207864b55b20d4a (diff)
change session name
Diffstat (limited to 'web/web.go')
-rw-r--r--web/web.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/web.go b/web/web.go
index c3d04ff9..dadbfda1 100644
--- a/web/web.go
+++ b/web/web.go
@@ -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)
})