[Mapbender-commits] r4096 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jun 23 13:14:58 EDT 2009
Author: uli
Date: 2009-06-23 13:14:58 -0400 (Tue, 23 Jun 2009)
New Revision: 4096
Modified:
trunk/mapbender/http/php/mb_validateSession.php
Log:
new session handling included
Modified: trunk/mapbender/http/php/mb_validateSession.php
===================================================================
--- trunk/mapbender/http/php/mb_validateSession.php 2009-06-23 17:13:45 UTC (rev 4095)
+++ trunk/mapbender/http/php/mb_validateSession.php 2009-06-23 17:14:58 UTC (rev 4096)
@@ -19,17 +19,16 @@
require_once(dirname(__FILE__)."/../../core/globalSettings.php");
-
$e = new mb_notice("mb_validateSession.php: checking file " . $_SERVER["PHP_SELF"]);
//
// check if user data is valid; if not, return to login screen
//
-if (!isset($_SESSION["mb_user_id"]) ||
- !isset($_SESSION["mb_user_ip"]) ||
- $_SESSION['mb_user_ip'] != $_SERVER['REMOTE_ADDR']) {
+if (!$mapbender_session->get("mb_user_id") ||
+ !$mapbender_session->get("mb_user_ip") ||
+ $mapbender_session->get('mb_user_ip') != $_SERVER['REMOTE_ADDR']) {
- $e = new mb_exception("mb_validateSession.php: Invalid user: " . $_SESSION["mb_user_id"]);
+ $e = new mb_exception("mb_validateSession.php: Invalid user: " . $mapbender_session->get("mb_user_id"));
header("Location: " . LOGIN);
die();
}
More information about the Mapbender_commits
mailing list