Microsoft sāk risināt Internet Explorer cookie problēmas

Izstrādātājiem varētu noderēt ziņa par to, ka pēdējos jauninājumos Internet Explorer cepumu limits pacelts no 20 līdz 50 uz domēnu.

In the past, IE’s cookie jar stored a maximum of 20 cookies per domain. If more than 20 cookies were sent by the server, older cookies were automatically dropped by the browser.

Tajā pašā laikā viņi nav izlabojuši būtisku kļūdu, kas reālajā dzīvē rada nopietnas problēmas.

Lieta tāda, ka joprojām Internet Explorer vispār neļauj izveidot cepumus domēniem kuru nosaukumā ir divi burti un domēnu zona arī ir divus burtus gara. Tas kā reizi attiecas uz Latvijas gadījumu, jo mums pirmā līmeņa domēns beidzas ar diviem burtiem – LV. Rezultātā domēns, kura nosaukums ir ab.lv nemaz nevar uztaisīt cepumu Internet Explorer lietotājam. Tāpēc arī daudzi divuburtu domēnu īpašnieki ir saskārušies ar problēmu, ka Google Analytics nespēj saskaitīt visus apmeklētājus un, piemēram, 1000 vietā rāda tikai 15 apmeklētājus.

Sīkāk par problēmu var palasīt crisp’s blogā.

For all other 2-letter TLD’s it is impossible to set a cookie in IE if you have registered a domain for that TLD that has also only 2 digits (e.g. xx.nl). The reasoning is simple: some countries do not allow the registration of a domain directly under the national TLD but instead use a system of ‘sub-level’ domains (e.g. .co.uk and .org.uk). It would be considered unsafe for a browser to allow a cookie to be set on such a ‘sub-level’ domain (although all browsers except IE do it happily) since that means that such a cookie can be read by a wide variety of websites hosted under that ‘sub-level’ domain. In fact: I did have a cookie for .co.uk residing in my Firefox…

Noteikti, ka ir arī tādi, kurus uztrauc 20 cepumu ierobežojums un šī ierobežojuma palielināšana līdz 50 varētu atvieglot viņiem dzīvi.

As a part of the Internet Explorer update announced yesterday, the cookies per domain limit has been increased from 20 to 50. This change was made to simplify the development and hosting of web applications on domains that use a large number of cookies.

Please note that even after installing this update, two other cookie limits remain unchanged:

  • The DOM’s document.cookie property will return an empty string if the current cookie string is longer than 4096 bytes
  • Internet Explorer (and the WinINET HTTP stack) will ignore any Set-Cookie header if the header value’s length exceeds 5118 bytes

Tajā pašā laikā cepumu ierobežojumu vēl kaut kā varētu apiet, jo var operēt ar vismaz 20 cepumiem, bet, ko darīt, ja šo cepumu vispār neļauj izveidot.

One thought on “Microsoft sāk risināt Internet Explorer cookie problēmas

Ieraksti komentāru

Tava e-pasta adrese netiks publicēta. Obligātie lauki ir atzīmēti kā *