Browse Source

PHP-Kohana - Fixed Cookie::$salt setting

Added a default Cookie::$salt in the bootstrap as required
Thomas Menga 12 years ago
parent
commit
efcecce2a7
1 changed files with 7 additions and 0 deletions
  1. 7 0
      php-kohana/application/bootstrap.php

+ 7 - 0
php-kohana/application/bootstrap.php

@@ -63,6 +63,13 @@ ini_set('unserialize_callback_func', 'spl_autoload_call');
  */
  */
 I18n::lang('en-us');
 I18n::lang('en-us');
 
 
+
+/**
+ * Set a magic salt to the Cookie (required)
+ * http://kohanaframework.org/3.3/guide/kohana/cookies#cookie-settings
+ */
+Cookie::$salt = 'please, set a Cookie salt';
+
 /**
 /**
  * Set Kohana::$environment if a 'KOHANA_ENV' environment variable has been supplied.
  * Set Kohana::$environment if a 'KOHANA_ENV' environment variable has been supplied.
  *
  *