Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8765877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:24:02+00:00 2026-06-13T16:24:02+00:00

Website is regularly giving HTTP400 Bad Request errors, it’s caused by 2 cookies being

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:24:03+00:00Added an answer on June 13, 2026 at 4:24 pm

    Try the code below. Also take note of the following: https://stackoverflow.com/a/6319162/881551

    <?php
    
    // I am using a larger expiration to account for server timezone differences.
    // http://php.net/manual/en/function.setcookie.php#96813
    
    $cookies = array(
        'clientLastHTimes', 
        'clientLastPTimes', 
        'AkamaiAnalytics_VisitIsPlaying', 
        'AkamaiAnalytics_VisitLastCloseTime'
    );
    
    foreach ($cookies as $cookie) {
        if (isset($_COOKIE[$cookie])) {
            $_COOKIE[$cookie] = '';
        }
        setcookie($cookie, "", time() - 90000);
        setcookie($cookie, "", time() - 90000, "/", $_SERVER['HTTP_HOST'], 0); // just in case
    }
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website that I regularly update the code to. I keep it
I have a website that is updated regularly and I am having a problem
I'm building a mobile website. I use regular html for the dropdown like below.
Website: http://videojs.com/ How can I use the YouTube Skin on the frontpage? I'd really
I have a small problem. I use a Frame to show a website, unfortunateli
Regularly, I get random page requests to my website. For example some of the
The contents of a commerce website (ASP.NET MVC) are regularly crawled by the competition.
I have to regularly test the availability and functioning of a movie rental website.
I have a Web Application that I regularly update and publish to my website.
We are developing a big Website, and all our Images and Resources are in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.