v2.9.0
Release 3X-UI for Docker / build (push) Canceled after 0s
CodeQL Advanced / Analyze (actions) (push) Canceled after 0s
CodeQL Advanced / Analyze (go) (push) Canceled after 0s
CodeQL Advanced / Analyze (javascript-typescript) (push) Canceled after 0s
Release 3X-UI / Analyze Go code (push) Canceled after 0s
Release 3X-UI / build (386) (push) Canceled after 0s
Release 3X-UI / build (amd64) (push) Canceled after 0s
Release 3X-UI / build (arm64) (push) Canceled after 0s
Release 3X-UI / build (armv5) (push) Canceled after 0s
Release 3X-UI / build (armv6) (push) Canceled after 0s
Release 3X-UI / build (armv7) (push) Canceled after 0s
Release 3X-UI / build (s390x) (push) Canceled after 0s
Release 3X-UI / Build for Windows (amd64) (push) Canceled after 0s

This commit is contained in:
MHSanaei committed 2026-04-20 21:43:49 +02:00 Unverified
1 parent ca2fd3814f
commit a9d8905393
2 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -1 +1 @@
2.8.11
2.9.0
+5 -2
View File
@@ -14,7 +14,6 @@ import (
const (
loginUserKey = "LOGIN_USER"
defaultPath = "/"
)
func init() {
@@ -59,8 +58,12 @@ func IsLogin(c *gin.Context) bool {
func ClearSession(c *gin.Context) {
s := sessions.Default(c)
s.Clear()
cookiePath := c.GetString("base_path")
if cookiePath == "" {
cookiePath = "/"
}
s.Options(sessions.Options{
Path: defaultPath,
Path: cookiePath,
MaxAge: -1,
HttpOnly: true,
SameSite: http.SameSiteLaxMode,