[Mapbender-commits] r3295 - branches/beck_dev/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Dec 11 02:58:32 EST 2008
Author: beck
Date: 2008-12-11 02:58:32 -0500 (Thu, 11 Dec 2008)
New Revision: 3295
Modified:
branches/beck_dev/http/javascripts/mod_mapCookie.php
Log:
Modified: branches/beck_dev/http/javascripts/mod_mapCookie.php
===================================================================
--- branches/beck_dev/http/javascripts/mod_mapCookie.php 2008-12-11 07:55:12 UTC (rev 3294)
+++ branches/beck_dev/http/javascripts/mod_mapCookie.php 2008-12-11 07:58:32 UTC (rev 3295)
@@ -59,8 +59,6 @@
var cookieExpires = new Date();
var cookieData = {}
- mod_mapCookie_removeCookie();
-
cookieExpires.setTime(cookieExpires.getTime() + (parseInt(mod_mapCookie_cookieLifetime) * 24 * 60 * 60 * 1000));
cookieData.frameName = currentMapState.frameName;
@@ -70,25 +68,6 @@
document.cookie = mod_mapCookie_cookieName + '=' + $.toJSON(cookieData) + ';expires=' + cookieExpires.toGMTString() + ';';
}
-function mod_mapCookie_removeCookie() {
- if(!document.cookie) {
- return;
- }
-
- var cookieExpires = new Date("01 01, 1970 00:00:01");
- var cookieData = document.cookie.split(';');
-
- for(var i = 0; i < cookieData.length; i++) {
- var cookieName = new RegExp(mod_mapCookie_cookieName);
-
- if(!cookieData[i].match(cookieName)) {
- continue;
- }
-
- document.cookie = mod_mapCookie_cookieName + '=;expires=' + cookieExpires + ';';
- }
-}
-
function mod_mapCookie_triggerUnload() {
if(ie) {
document.getElementById('body').onunload = function() {
More information about the Mapbender_commits
mailing list