mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
reduce cookie expire time
This commit is contained in:
@@ -26,7 +26,7 @@ func init() {
|
|||||||
router = gin.Default()
|
router = gin.Default()
|
||||||
store := sessions.NewCookieStore([]byte("eiblog321"))
|
store := sessions.NewCookieStore([]byte("eiblog321"))
|
||||||
store.Options(sessions.Options{
|
store.Options(sessions.Options{
|
||||||
MaxAge: 86400 * 999,
|
MaxAge: 86400 * 7,
|
||||||
Path: "/",
|
Path: "/",
|
||||||
Secure: setting.Conf.RunMode == setting.PROD,
|
Secure: setting.Conf.RunMode == setting.PROD,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user