🎨 update

This commit is contained in:
landaiqing
2024-11-05 17:24:11 +08:00
parent a153e0345a
commit 0b22d9800c
16 changed files with 210 additions and 289 deletions

View File

@@ -2,10 +2,12 @@ package core
import (
"context"
"net/http"
"github.com/gorilla/sessions"
"github.com/rbcervilla/redisstore/v9"
"github.com/redis/go-redis/v9"
"net/http"
"schisandra-cloud-album/common/constant"
"schisandra-cloud-album/global"
)
@@ -20,7 +22,7 @@ func InitSession(client *redis.Client) {
store.KeyPrefix(constant.UserSessionRedisKey)
store.Options(sessions.Options{
Path: "/",
//Domain: global.CONFIG.System.Web,
// Domain: global.CONFIG.System.Web,
MaxAge: 86400 * 7,
HttpOnly: true,
Secure: true,