mirror of
				https://github.com/abhinavxd/libredesk.git
				synced 2025-11-04 05:53:30 +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{
 | 
							Cookie: simplesessions.CookieOptions{
 | 
				
			||||||
			IsHTTPOnly: true,
 | 
								IsHTTPOnly: true,
 | 
				
			||||||
			IsSecure:   true,
 | 
								IsSecure:   true,
 | 
				
			||||||
			MaxAge:     time.Hour * 6,
 | 
								Expires:    time.Now().Add(time.Hour * 48),
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user