summaryrefslogtreecommitdiff
path: root/src/web/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/index.php')
-rw-r--r--src/web/index.php13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/web/index.php b/src/web/index.php
index 932fc84..8ae7a95 100644
--- a/src/web/index.php
+++ b/src/web/index.php
@@ -10,15 +10,6 @@ require($webroot . '/helpers/ldap.php');
require($webroot . '/helpers/auth.php');
// start session
-session_set_cookie_params(
- 60 * 60 * 24, // lifetime (seconds),
- '/', // path
- NULL, // domain,
- TRUE, // secure,
- TRUE // http only
-);
-session_start();
-
function page($file, $data = array()) {
extract($data);
$webroot = $GLOBALS['webroot'];
@@ -56,8 +47,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if ($_SERVER['REQUEST_URI'] !== '/login') {
// we are being forwarded authed
// redirect
- http_response_code(301);
- header("Location: https://$env/login");
+ http_response_code(303);
+ header("Location: http://$env/login");
} else {
page('login', array(
'title' => 'Login'