This commit has been accessed 562 times via Git panel.
commit a0577241d7eb702022d0d8bbee6a2b937bc92a91
tree ed83bf950f0ae9f671f57a06d60b5197a2a891f3
parent 7694a084564a1d83e96cf67bf8e7ab7df6b85130
author Engels Antonio <engels@majcms.org> 1277314193 +0800
committer Engels Antonio <engels@majcms.org> 1277314193 +0800
maj-0.14-20071213-bb.zip
diff --git a/index.php b/index.php
index 90873df..8d3154b 100644
--- a/index.php
+++ b/index.php
@@ -4,7 +4,7 @@ ini_set("session.use_trans_sid", 0);
session_start();
-if (isset($SESSION['logged_in']) and ($_SESSION['user_agent'] != $_SERVER['HTTP_USER_AGENT'])) {
+if (isset($_SESSION['logged_in']) and ($_SESSION['user_agent'] != $_SERVER['HTTP_USER_AGENT'])) {
header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/login.php");
}
diff --git a/login.php b/login.php
index 1181d9e..99fe3e4 100644
--- a/login.php
+++ b/login.php
@@ -2,7 +2,7 @@
session_start();
-session_regenerate_id();
+//session_regenerate_id();
header("Cache-control: private");
diff --git a/reset.php b/reset.php
index 562f3ee..71143b2 100644
--- a/reset.php
+++ b/reset.php
@@ -1,7 +1,9 @@
<?php
session_start();
-session_regenerate_id();
+
+//session_regenerate_id();
+
header("Cache-control: private");
if (file_exists("data/lite.txt")) {
tree ed83bf950f0ae9f671f57a06d60b5197a2a891f3
parent 7694a084564a1d83e96cf67bf8e7ab7df6b85130
author Engels Antonio <engels@majcms.org> 1277314193 +0800
committer Engels Antonio <engels@majcms.org> 1277314193 +0800
maj-0.14-20071213-bb.zip
diff --git a/index.php b/index.php
index 90873df..8d3154b 100644
--- a/index.php
+++ b/index.php
@@ -4,7 +4,7 @@ ini_set("session.use_trans_sid", 0);
session_start();
-if (isset($SESSION['logged_in']) and ($_SESSION['user_agent'] != $_SERVER['HTTP_USER_AGENT'])) {
+if (isset($_SESSION['logged_in']) and ($_SESSION['user_agent'] != $_SERVER['HTTP_USER_AGENT'])) {
header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/login.php");
}
diff --git a/login.php b/login.php
index 1181d9e..99fe3e4 100644
--- a/login.php
+++ b/login.php
@@ -2,7 +2,7 @@
session_start();
-session_regenerate_id();
+//session_regenerate_id();
header("Cache-control: private");
diff --git a/reset.php b/reset.php
index 562f3ee..71143b2 100644
--- a/reset.php
+++ b/reset.php
@@ -1,7 +1,9 @@
<?php
session_start();
-session_regenerate_id();
+
+//session_regenerate_id();
+
header("Cache-control: private");
if (file_exists("data/lite.txt")) {