开发者

Any PHP function to convert invalid characters in Cookie?

开发者 https://www.devze.com 2023-02-15 04:38 出处:网络
I got this: Warning: Cookie开发者_StackOverflow values can not contain any of the following \',; \\t\\r\\n\\013\\014\'

I got this: Warning: Cookie开发者_StackOverflow values can not contain any of the following ',; \t\r\n\013\014'

is there a function to remove those? and also convert the "+" sign in to %2B ?


try urlencode($cookie_value);


At last, I use base64_encode to do that.

0

精彩评论

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