svn commit: r374 - trunk/mapbender/http/php/mod_logout.php

uli at osgeo.org uli at osgeo.org
Thu Jun 1 04:02:00 EDT 2006


Author: uli
Date: 2006-06-01 08:01:59+0000
New Revision: 374

Modified:
   trunk/mapbender/http/php/mod_logout.php

Log:
destroy cookie 

Modified: trunk/mapbender/http/php/mod_logout.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_logout.php?view=diff&rev=374&p1=trunk/mapbender/http/php/mod_logout.php&p2=trunk/mapbender/http/php/mod_logout.php&r1=373&r2=374
==============================================================================
--- trunk/mapbender/http/php/mod_logout.php	(original)
+++ trunk/mapbender/http/php/mod_logout.php	2006-06-01 08:01:59+0000
@@ -28,8 +28,9 @@
 
 include '../include/dyn_php.php';
 ignore_user_abort();
-session_start();
-session_unset();
+if (isset($_COOKIE[session_name()])) {
+    setcookie(session_name(), '', time()-42000, '/');
+}
 session_destroy();
 $dir = preg_replace("/\\\/","/", dirname($_SERVER['PHP_SELF']));
 




More information about the Mapbender_commits mailing list