diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2018-10-16 08:56:34 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2018-10-16 08:56:34 +0300 |
| commit | b2b9d3649d8e51a756e68aa81e00c87105de4aa3 (patch) | |
| tree | c1dcbc6f87ad6a3a435d7c9a2eafc540a0615e9c /login.php | |
| parent | a0c3cd5ce5e95c55e1d96e289139c8e2550a6e44 (diff) | |
| download | the-epube-b2b9d3649d8e51a756e68aa81e00c87105de4aa3.tar.gz the-epube-b2b9d3649d8e51a756e68aa81e00c87105de4aa3.tar.xz | |
further session-related fixes
Diffstat (limited to 'login.php')
| -rw-r--r-- | login.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/login.php b/login.php index d571497..ff8fd46 100644 --- a/login.php +++ b/login.php @@ -1,5 +1,6 @@ <?php require_once "config.php"; + require_once "sessions.php"; @$op = $_REQUEST["op"]; @@ -17,11 +18,13 @@ $sth->execute([$user, $password]); if ($line = $sth->fetch()) { - require_once "sessions.php"; if (session_status() != PHP_SESSION_NONE) { session_destroy(); session_commit(); + + header("Location: login.php"); + return; } session_regenerate_id(true); |
