I have a URL which contains a '!' in the value of a query parameter. I enocode the param string in cookies and load a related page. From php:
foreach ( $_GET as $key => $value ){
setcookie($key,$value,time()+60,'/');
}
In the related page, the value of the cookie (read through javascript/jquery $.cookie("")) has the '!' encoded as %21.
Can someone tell me why the '!' has been encoded? Isn't it a valid character in a cookie value?