siwwy :3 #3
					 1 changed files with 1 additions and 1 deletions
				
			
		Expand cookie to all domains *.diskfloppy.me
				commit
				
					
					
						08586938f6
					
				
			
		| 
						 | 
				
			
			@ -29,7 +29,7 @@ function setCookie(cname, cvalue, exdays) {
 | 
			
		|||
    const d = new Date();
 | 
			
		||||
    d.setTime(d.getTime() + (exdays*24*60*60*1000));
 | 
			
		||||
    let expires = "expires="+ d.toUTCString();
 | 
			
		||||
    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/;SameSite=Strict";
 | 
			
		||||
    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/;SameSite=Strict;Domain=.diskfloppy.me";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue