From 80566552e1b619a123ae6fe5ea09fe34a6329690 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Fri, 13 Jun 2008 09:58:12 +0000
Subject: [PATCH] Language choice cookie set to path "/" to be used on multiple
 sites

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@653 44740490-163a-0410-bde0-09ae8108e29a
---
 lib/SimpleSAML/XHTML/Template.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php
index 20e34788e..7f8a44476 100644
--- a/lib/SimpleSAML/XHTML/Template.php
+++ b/lib/SimpleSAML/XHTML/Template.php
@@ -54,7 +54,7 @@ class SimpleSAML_XHTML_Template {
 		$this->language = $language;
 		// setcookie ( string $name [, string $value [, int $expire [, string $path [, string $domain [, bool $secure [, bool $httponly ]]]]]] )
 		// time()+60*60*24*900 expires 900 days from now.
-		setcookie('language', $language, time()+60*60*24*900);
+		setcookie('language', $language, time()+60*60*24*900, '/');
 	}
 
 	/**
-- 
GitLab