Add "1" and overwrite the previous value
I think what you may be looking for is found on this page.


  This is happening because of the ++ being used as a post-increment
  instead of a pre-increment. Essentially what is happening is you're
  saying, "set $cookie to the value of $_COOKIE['count'], and then
  increment $_COOKIE['count'].


Go for ++$_COOKIE['mycookie']; instead and let us know how that works out.