mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	feat(session_parser): use Session.cookieMaxAge from config
This commit is contained in:
		
							parent
							
								
									53576f5578
								
							
						
					
					
						commit
						4e23b5193d
					
				@ -12,7 +12,7 @@ const sessionParser = session({
 | 
			
		||||
    cookie: {
 | 
			
		||||
        path: config.Session.cookiePath,
 | 
			
		||||
        httpOnly: true,
 | 
			
		||||
        maxAge: 24 * 60 * 60 * 1000 // in milliseconds
 | 
			
		||||
        maxAge:  config.Session.cookieMaxAge
 | 
			
		||||
    },
 | 
			
		||||
    name: "trilium.sid",
 | 
			
		||||
    store: new FileStore({
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user