mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	rename session cookie from connect.sid to trilium (#1495)
to prevent collisions with other express-session apps
This commit is contained in:
		
							parent
							
								
									95ccfd2521
								
							
						
					
					
						commit
						015c9d2ccd
					
				| @ -38,6 +38,7 @@ const sessionParser = session({ | ||||
|         httpOnly: true, | ||||
|         maxAge:  24 * 60 * 60 * 1000 // in milliseconds
 | ||||
|     }, | ||||
|     name: 'trilium', | ||||
|     store: new FileStore({ | ||||
|         ttl: 30 * 24 * 3600, | ||||
|         path: dataDir.TRILIUM_DATA_DIR + '/sessions' | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Steven Tang
						Steven Tang