开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜