Submit a Pull Request Report a Bug. Want to remove a cookie? Many people do it the complicated way: setcookie 'name', 'content', time ; But why do you make it so complicated and risk it not working, when the client's time is wrong? Why fiddle around with time ; Here's the easiest way to unset a cookie: setcookie 'name', 'content', 1 ; Thats it. Note when setting "array cookies" that a separate cookie is set for each element of the array. On high traffic sites, this can substantially increase the size of subsequent HTTP requests from clients including requests for static content on the same domain. More importantly though, the cookie specification says that browsers need only accept 20 cookies per domain. This limit is increased to 50 by Firefox, and to 30 by Opera, but IE6 and IE7 enforce the limit of 20 cookie per domain. It's worth a mention: you should avoid dots on cookie names. As of PHP 7.
Блог Центра Google Поиска
How did the event go?
The first Virtual Webmaster Unconference successfully took place on August 26th and, as promised, we'd like to share the main findings and conclusions here. As communicated before, this event was a pilot, in which we wanted to test a if there was an appetite for a very different type of event, and b whether the community would actively engage in the discussions. To the first question, we were overwhelmed with the interest to participate; it definitely exceeded our expectations and it gives us fuel to try out future iterations. Despite the frustration of many, who did not receive an invitation, we purposefully kept the event small. This brings us to our second point: it is by creating smaller venues that discussions can happen comfortably. Larger audiences are perfect for more conventional conferences, with keynotes and panels. The Virtual Webmaster Unconference, however, was created to hear the attendees' voices.
What did we learn in the sessions?
At the recent Search Engine Strategies conference in freezing Chicago, many of us Googlers were asked questions about duplicate content. We recognize that there are many nuances and a bit of confusion on the topic, so we'd like to help set the record straight. Duplicate content generally refers to substantive blocks of content within or across domains that either completely match other content or are appreciably similar. Most of the time when we see this, it's unintentional or at least not malicious in origin: forums that generate both regular and stripped-down mobile-targeted pages, store items shown and -- worse yet -- linked via multiple distinct URLs, and so on. In some cases, content is duplicated across domains in an attempt to manipulate search engine rankings or garner more traffic via popular or long-tail queries. Though we do offer a handy translation utility , our algorithms won't view the same article written in English and Spanish as duplicate content. Similarly, you shouldn't worry about occasional snippets quotes and otherwise being flagged as duplicate content. Our users typically want to see a diverse cross-section of unique content when they do searches. In contrast, they're understandably annoyed when they see substantially the same content within a set of search results.
Whenever a resource conflict would be caused by fulfilling the request. Duplicate entries and deleting root objects when cascade-delete is not supported are a couple of examples. Slein, J. Reliable, interoperable negotiation of Upgrade features requires an unambiguous failure signal. The Upgrade Required status code allows a server to definitively state the precise protocol extensions a given resource must be served with. Its typical use is to avoid the "lost update" problem, where a client GETs a resource's state, modifies it, and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict. By requiring requests to be conditional, the server can assure that clients are working with the correct copies. The status code is optional; clients cannot rely upon its use to prevent "lost update" conflicts.