simple tokenized loginsystem
This commit is contained in:
		
							parent
							
								
									8f2311df0b
								
							
						
					
					
						commit
						f5371aba5d
					
				
					 5 changed files with 124 additions and 10 deletions
				
			
		
							
								
								
									
										7
									
								
								logout.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								logout.php
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | |||
| <?php | ||||
| setcookie("token", "", 0); | ||||
| require_once('inc/database.php'); | ||||
| $db = new DataBase(); | ||||
| $db->tokenRemove(base64_decode($_COOKIE['token'])); | ||||
| header("Location: /"); | ||||
| ?>
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue