[Webkit-unassigned] [Bug 169173] Safari is omitting cookies when sending a web request
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 28 00:37:28 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=169173
--- Comment #4 from Jan Hajek <hajek.j at hotmail.com> ---
Alright - when you visit http://hajekj-cookietest.azurewebsites.net/ - the site is going to set 4 cookies named cookie-1 to cookie-4, each of 3978 bytes in size. When you refresh the page, it is going to show the cookies the server received and in case when you use Safari, only 2 cookies will be shown - cookie-1 and cookie-2, the rest is missing. From developer tools, it will show that there are 4 cookies in the browser memory.
The script for this demo is in PHP, and is like this:
```php
<?php
function generateRandomString($length = 10) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, $charactersLength - 1)];
}
return $randomString;
}
for($i = 0; $i < 4; $i++) {
setcookie("cookie-$i", generateRandomString(3970));
}
echo "<pre>";
print_r($_COOKIE);
```
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170328/9827d94c/attachment.html>
More information about the webkit-unassigned
mailing list