My application needs to set cookies for specific paths in the application. For example (in php):
setcookie(*cookie_name*,*value*,*date*,"/subpath/subpath/unique_name");
setcookie(*cookie_name*,*value*,*date*,"/subpath/subpath/another unique name");
Oddly enough, the first setcookie works fine. The second doesn't generate an error and when I view my cookies in Firefox the cookie is there with the correct values. However, I can't access it in my code. I believe the whitespaces are causing the trouble but I haven't found any documentation or specs on how cookie paths should be encoded.
Has anyone encountered this problem before? Does anyone know how to deal with special characters in cookie paths?