Website is regularly giving HTTP400 Bad Request errors, it's caused by 2 cookies being too big.
I use livestream.com to play live video (using Flash) and seems like they use Akamai Analytics that is setting 4 cookies with my domain. clientLastHTimes clientLastPTimes AkamaiAnalytics_VisitIsPlaying AkamaiAnalytics_VisitLastCloseTime
The first two are the one posing problems with over 8000 characters on last crash.
So tried php way to delete these cookies doing this
setcookie(
'clientLastPTimes', '', time() - 3600, '/','mydomain.com', false, false
);
or
setcookie('clientLastPTimes', '', 1);
Not working.
Then tried to do the same with Javascript on page load AND unload.
function Delete_Cookie( name, path, domain ) {
document.cookie=name+"="
+ ((path) ? ";path="+path:"")
+ ((domain)?";domain="+domain:"")
+ ";expires=Thu, 01 Jan 1970 00:00:01 GMT";
}
Delete_Cookie('clientLastPTimes', '/', 'mydomain.com')
These damn cookies are still there. Sometimes it created other cookies with the same name. Found that was usually due to path or domain being slightly different. Tried to just edit their content too, without setting a backward date.
So really struggling with this one. If you have any idea how to delete these cookies or do anything else to avoid HTTP400 cookie overload.... I'd be very greatful.
Thanks a lot
John