Setting cookie using Kohana 3.1 helper class results in server error : 500
I am trying to make use of Kohana helper "Cookie" class.开发者_开发知识库
Doesn't seem to work, gives 500 error on calling.setcookie($name,$value)
works though.
What might be the reason??
The only place where I could see that function failing is if you have failed to provide a cookie salt. Make sure you set one and see if this fixes your error. In the bootstrap:
// Use a long and random value.
Cookie::$salt = ''
精彩评论