Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kohana_Exception [ 0 ]: A valid cookie salt is required. Please set Cookie::$salt

I'm working through this tutorial (http://kowsercse.com/2011/09/04/kohana-tutorial-beginners/) and have run into this error message:

Kohana_Exception [ 0 ]: A valid cookie salt is required. Please set Cookie::$salt.

I'm a n00b and don't even know where to look for Cookie::$salt in the app.

like image 694
DBWeinstein Avatar asked Dec 09 '22 15:12

DBWeinstein


2 Answers

You have to provide a salt as you can read in the official documentation

//bootstrap.php
Cookie::$salt = 'foobar';

I can highly recommend the official doc as well as the API browser. When you learn how Kohana works, you will learn first of all the meaning of the error messages and how you can handle them yourself

like image 180
kero Avatar answered Dec 11 '22 11:12

kero


Find file: bootstrap.php (www\kohana\application).

Paste this:

Cookie::$salt = 'foobar';

That will be fine.

like image 45
Pavlen Avatar answered Dec 11 '22 10:12

Pavlen