mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-11-03 13:33:32 +00:00
set 48 hr expirty to login cookie.
This commit is contained in:
@@ -92,7 +92,7 @@ func New(cfg Config, rd *redis.Client, logger *logf.Logger) (*Auth, error) {
|
||||
Cookie: simplesessions.CookieOptions{
|
||||
IsHTTPOnly: true,
|
||||
IsSecure: true,
|
||||
MaxAge: time.Hour * 6,
|
||||
Expires: time.Now().Add(time.Hour * 48),
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user