Update 2 files
- /html/login.php - /html/logout.php
This commit is contained in:
parent
d3a589e103
commit
6ba72e3f51
@ -23,6 +23,8 @@ if(isset($_POST['username']) && isset($_POST['password'])) {
|
|||||||
$_SESSION['email'] = $resultat[0]['email'];
|
$_SESSION['email'] = $resultat[0]['email'];
|
||||||
$_SESSION['display_name'] = $resultat[0]['display_name'];
|
$_SESSION['display_name'] = $resultat[0]['display_name'];
|
||||||
$_SESSION['userid'] = $resultat[0]['ID'];
|
$_SESSION['userid'] = $resultat[0]['ID'];
|
||||||
|
header("Location: index.php");
|
||||||
|
exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
6
html/logout.php
Normal file
6
html/logout.php
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
session_destroy();
|
||||||
|
header("Location: index.php");
|
||||||
|
exit();
|
||||||
|
?>
|
Loading…
x
Reference in New Issue
Block a user