[art-web] [controllers] set the cookie path to prevent conflicts



commit ce514380cc29b5e2bea21ef32e8d332787cef595
Author: Thomas Wood <thos gnome org>
Date:   Wed Dec 30 11:04:01 2009 +0000

    [controllers] set the cookie path to prevent conflicts
    
    The cookie path needs to be set to prevent conflicts when two cookies are
    set with the same name, but with paths that both apply to the current URL.

 controllers/backgrounds.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/controllers/backgrounds.php b/controllers/backgrounds.php
index 2c5d8da..7ec948e 100644
--- a/controllers/backgrounds.php
+++ b/controllers/backgrounds.php
@@ -54,7 +54,7 @@ function GET_COOKIE ($name, $default)
   $set = GET ($name);
   if ($set)
   {
-    setcookie ($name, $set);
+    setcookie ($name, $set, 0, '/');
     $value = $set;
   }
   else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]