IE cookie 有効期限テスト
- IE は Set-Cookie HTTP ヘッダで指定する max-age 属性を無視するとの情報あり。
- IE11 で max-age が無視されないブラウザがあった。
- Chrome + Firefox は max-age が正常に機能する。
HTTP Cookies: What's the difference between Max-age and Expires? / Mr Coles Peter Coles' blog
Internet Explorer (ie6, ie7, and ie8) does not support “max-age”, while (mostly) all browsers support expires
- https://mrcoles.com/media/test/cookies-max-age-vs-expires.html
- max-age と expires 属性を同時に発行してテストできるページ
各種ブラウザでの結果
# | OS | ブラウザ | モード | max-age | User-Agent | バージョン情報+更新バージョン |
---|---|---|---|---|---|---|
1 | Windows 8.1 Pro | IE11 | 互換設定なし | 無効 | Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko | 11.0.9600.19003 + 更新バージョン 11.0.60 (KB4103768) |
2 | Windows 8.1 Pro | Firefox | 有効 | Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0 | 60.0.2 | |
3 | Windows 8.1 Pro | Chrome | 有効 | Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/67.0.3396.87 Safari/537.36 | 67.0.3396.87 | |
4 | Windows 10 Pro | IE11 | 互換設定なし | 有効 | Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko | 11.1058.15063,0 + 更新バージョン 11.0.60 (KB4092946) |
5 | Windwos 10 Pro | Edge | 有効 | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063 | Microsoft Edge 40.15063.674.0 + Microsoft EdgeHTML 15.15063 | |
6 | Windows 10 Pro | Firefox | 有効 | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv60.0) Gecko/20100101 Firefox/60.0 | 60.0.2 | |
7 | Windows 10 Pro | Chrome | 有効 | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/67.0.3396.87 Safari/537.36 | 67.0.3396.87 | |
8 | Windows 7 Pro | IE11 | 互換設定なし | 無効 | Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko | IE 11.0.9600.18977 + 更新バージョン 11.0.56(KB40924946) |
9 | Windows 7 Pro | Firefox | 有効 | Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0 | 60.0.2 | |
10 | Windows 7 Pro | Chrome | 有効 | Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/67.0.3396.87 Safari/537.36 | 67.0.3396.87 |
- #1
- #4