开发者

Setting cookie using Kohana 3.1 helper class results in server error : 500

开发者 https://www.devze.com 2023-03-16 05:32 出处:网络
I am trying to make use of Kohana helper \"Cookie\" class.开发者_开发知识库 Doesn\'t seem to work, gives 500 error on calling.

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 = ''
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号