Make language setting cookie a permanent cookie
[gitphp.git] / include / Resource.class.php
blob:a/include/Resource.class.php -> blob:b/include/Resource.class.php
--- a/include/Resource.class.php
+++ b/include/Resource.class.php
@@ -16,6 +16,11 @@
  * Constant of the locale cookie in the user's browser
  */
 define('GITPHP_LOCALE_COOKIE', 'GitPHPLocale');
+
+/**
+ * Locale cookie lifetime
+ */
+define('GITPHP_LOCALE_COOKIE_LIFETIME', 60*60*24*365);		// 1 year
 
 /**
  * Resource factory class

comments