浏览器cookie数

  1 <?php
  2 for ($w=0; $w < 200 ; $w++) {
  3     setcookie(‘name‘.$w,‘value‘.$w, time()+3600*10 );
  4 }
  5 var_dump($_COOKIE);
  6 /*
  7 IE 11.0.20
  8 array (size=50)
  9   ‘name150‘ => string ‘value150‘ (length=8)
 10   ‘name151‘ => string ‘value151‘ (length=8)
 11   ‘name152‘ => string ‘value152‘ (length=8)
 12   ‘name153‘ => string ‘value153‘ (length=8)
 13   ‘name154‘ => string ‘value154‘ (length=8)
 14   ‘name155‘ => string ‘value155‘ (length=8)
 15   ‘name156‘ => string ‘value156‘ (length=8)
 16   ‘name157‘ => string ‘value157‘ (length=8)
 17   ‘name158‘ => string ‘value158‘ (length=8)
 18   ‘name159‘ => string ‘value159‘ (length=8)
 19   ‘name160‘ => string ‘value160‘ (length=8)
 20   ‘name161‘ => string ‘value161‘ (length=8)
 21   ‘name162‘ => string ‘value162‘ (length=8)
 22   ‘name163‘ => string ‘value163‘ (length=8)
 23   ‘name164‘ => string ‘value164‘ (length=8)
 24   ‘name165‘ => string ‘value165‘ (length=8)
 25   ‘name166‘ => string ‘value166‘ (length=8)
 26   ‘name167‘ => string ‘value167‘ (length=8)
 27   ‘name168‘ => string ‘value168‘ (length=8)
 28   ‘name169‘ => string ‘value169‘ (length=8)
 29   ‘name170‘ => string ‘value170‘ (length=8)
 30   ‘name171‘ => string ‘value171‘ (length=8)
 31   ‘name172‘ => string ‘value172‘ (length=8)
 32   ‘name173‘ => string ‘value173‘ (length=8)
 33   ‘name174‘ => string ‘value174‘ (length=8)
 34   ‘name175‘ => string ‘value175‘ (length=8)
 35   ‘name176‘ => string ‘value176‘ (length=8)
 36   ‘name177‘ => string ‘value177‘ (length=8)
 37   ‘name178‘ => string ‘value178‘ (length=8)
 38   ‘name179‘ => string ‘value179‘ (length=8)
 39   ‘name180‘ => string ‘value180‘ (length=8)
 40   ‘name181‘ => string ‘value181‘ (length=8)
 41   ‘name182‘ => string ‘value182‘ (length=8)
 42   ‘name183‘ => string ‘value183‘ (length=8)
 43   ‘name184‘ => string ‘value184‘ (length=8)
 44   ‘name185‘ => string ‘value185‘ (length=8)
 45   ‘name186‘ => string ‘value186‘ (length=8)
 46   ‘name187‘ => string ‘value187‘ (length=8)
 47   ‘name188‘ => string ‘value188‘ (length=8)
 48   ‘name189‘ => string ‘value189‘ (length=8)
 49   ‘name190‘ => string ‘value190‘ (length=8)
 50   ‘name191‘ => string ‘value191‘ (length=8)
 51   ‘name192‘ => string ‘value192‘ (length=8)
 52   ‘name193‘ => string ‘value193‘ (length=8)
 53   ‘name194‘ => string ‘value194‘ (length=8)
 54   ‘name195‘ => string ‘value195‘ (length=8)
 55   ‘name196‘ => string ‘value196‘ (length=8)
 56   ‘name197‘ => string ‘value197‘ (length=8)
 57   ‘name198‘ => string ‘value198‘ (length=8)
 58   ‘name199‘ => string ‘value199‘ (length=8)
 59
 60
 61
 62
 63
 64 Firefox 47.0.1
 65 array (size=150)
 66   ‘name50‘ => string ‘value50‘ (length=7)
 67   ‘name51‘ => string ‘value51‘ (length=7)
 68   ‘name52‘ => string ‘value52‘ (length=7)
 69   ‘name53‘ => string ‘value53‘ (length=7)
 70   ‘name54‘ => string ‘value54‘ (length=7)
 71   ‘name55‘ => string ‘value55‘ (length=7)
 72   ‘name56‘ => string ‘value56‘ (length=7)
 73   ‘name57‘ => string ‘value57‘ (length=7)
 74   ‘name58‘ => string ‘value58‘ (length=7)
 75   ‘name59‘ => string ‘value59‘ (length=7)
 76   ‘name60‘ => string ‘value60‘ (length=7)
 77   ‘name61‘ => string ‘value61‘ (length=7)
 78   ‘name62‘ => string ‘value62‘ (length=7)
 79   ‘name63‘ => string ‘value63‘ (length=7)
 80   ‘name64‘ => string ‘value64‘ (length=7)
 81   ‘name65‘ => string ‘value65‘ (length=7)
 82   ‘name66‘ => string ‘value66‘ (length=7)
 83   ‘name67‘ => string ‘value67‘ (length=7)
 84   ‘name68‘ => string ‘value68‘ (length=7)
 85   ‘name69‘ => string ‘value69‘ (length=7)
 86   ‘name70‘ => string ‘value70‘ (length=7)
 87   ‘name71‘ => string ‘value71‘ (length=7)
 88   ‘name72‘ => string ‘value72‘ (length=7)
 89   ‘name73‘ => string ‘value73‘ (length=7)
 90   ‘name74‘ => string ‘value74‘ (length=7)
 91   ‘name75‘ => string ‘value75‘ (length=7)
 92   ‘name76‘ => string ‘value76‘ (length=7)
 93   ‘name77‘ => string ‘value77‘ (length=7)
 94   ‘name78‘ => string ‘value78‘ (length=7)
 95   ‘name79‘ => string ‘value79‘ (length=7)
 96   ‘name80‘ => string ‘value80‘ (length=7)
 97   ‘name81‘ => string ‘value81‘ (length=7)
 98   ‘name82‘ => string ‘value82‘ (length=7)
 99   ‘name83‘ => string ‘value83‘ (length=7)
100   ‘name84‘ => string ‘value84‘ (length=7)
101   ‘name85‘ => string ‘value85‘ (length=7)
102   ‘name86‘ => string ‘value86‘ (length=7)
103   ‘name87‘ => string ‘value87‘ (length=7)
104   ‘name88‘ => string ‘value88‘ (length=7)
105   ‘name89‘ => string ‘value89‘ (length=7)
106   ‘name90‘ => string ‘value90‘ (length=7)
107   ‘name91‘ => string ‘value91‘ (length=7)
108   ‘name92‘ => string ‘value92‘ (length=7)
109   ‘name93‘ => string ‘value93‘ (length=7)
110   ‘name94‘ => string ‘value94‘ (length=7)
111   ‘name95‘ => string ‘value95‘ (length=7)
112   ‘name96‘ => string ‘value96‘ (length=7)
113   ‘name97‘ => string ‘value97‘ (length=7)
114   ‘name98‘ => string ‘value98‘ (length=7)
115   ‘name99‘ => string ‘value99‘ (length=7)
116   ‘name100‘ => string ‘value100‘ (length=8)
117   ‘name101‘ => string ‘value101‘ (length=8)
118   ‘name102‘ => string ‘value102‘ (length=8)
119   ‘name103‘ => string ‘value103‘ (length=8)
120   ‘name104‘ => string ‘value104‘ (length=8)
121   ‘name105‘ => string ‘value105‘ (length=8)
122   ‘name106‘ => string ‘value106‘ (length=8)
123   ‘name107‘ => string ‘value107‘ (length=8)
124   ‘name108‘ => string ‘value108‘ (length=8)
125   ‘name109‘ => string ‘value109‘ (length=8)
126   ‘name110‘ => string ‘value110‘ (length=8)
127   ‘name111‘ => string ‘value111‘ (length=8)
128   ‘name112‘ => string ‘value112‘ (length=8)
129   ‘name113‘ => string ‘value113‘ (length=8)
130   ‘name114‘ => string ‘value114‘ (length=8)
131   ‘name115‘ => string ‘value115‘ (length=8)
132   ‘name116‘ => string ‘value116‘ (length=8)
133   ‘name117‘ => string ‘value117‘ (length=8)
134   ‘name118‘ => string ‘value118‘ (length=8)
135   ‘name119‘ => string ‘value119‘ (length=8)
136   ‘name120‘ => string ‘value120‘ (length=8)
137   ‘name121‘ => string ‘value121‘ (length=8)
138   ‘name122‘ => string ‘value122‘ (length=8)
139   ‘name123‘ => string ‘value123‘ (length=8)
140   ‘name124‘ => string ‘value124‘ (length=8)
141   ‘name125‘ => string ‘value125‘ (length=8)
142   ‘name126‘ => string ‘value126‘ (length=8)
143   ‘name127‘ => string ‘value127‘ (length=8)
144   ‘name128‘ => string ‘value128‘ (length=8)
145   ‘name129‘ => string ‘value129‘ (length=8)
146   ‘name130‘ => string ‘value130‘ (length=8)
147   ‘name131‘ => string ‘value131‘ (length=8)
148   ‘name132‘ => string ‘value132‘ (length=8)
149   ‘name133‘ => string ‘value133‘ (length=8)
150   ‘name134‘ => string ‘value134‘ (length=8)
151   ‘name135‘ => string ‘value135‘ (length=8)
152   ‘name136‘ => string ‘value136‘ (length=8)
153   ‘name137‘ => string ‘value137‘ (length=8)
154   ‘name138‘ => string ‘value138‘ (length=8)
155   ‘name139‘ => string ‘value139‘ (length=8)
156   ‘name140‘ => string ‘value140‘ (length=8)
157   ‘name141‘ => string ‘value141‘ (length=8)
158   ‘name142‘ => string ‘value142‘ (length=8)
159   ‘name143‘ => string ‘value143‘ (length=8)
160   ‘name144‘ => string ‘value144‘ (length=8)
161   ‘name145‘ => string ‘value145‘ (length=8)
162   ‘name146‘ => string ‘value146‘ (length=8)
163   ‘name147‘ => string ‘value147‘ (length=8)
164   ‘name148‘ => string ‘value148‘ (length=8)
165   ‘name149‘ => string ‘value149‘ (length=8)
166   ‘name150‘ => string ‘value150‘ (length=8)
167   ‘name151‘ => string ‘value151‘ (length=8)
168   ‘name152‘ => string ‘value152‘ (length=8)
169   ‘name153‘ => string ‘value153‘ (length=8)
170   ‘name154‘ => string ‘value154‘ (length=8)
171   ‘name155‘ => string ‘value155‘ (length=8)
172   ‘name156‘ => string ‘value156‘ (length=8)
173   ‘name157‘ => string ‘value157‘ (length=8)
174   ‘name158‘ => string ‘value158‘ (length=8)
175   ‘name159‘ => string ‘value159‘ (length=8)
176   ‘name160‘ => string ‘value160‘ (length=8)
177   ‘name161‘ => string ‘value161‘ (length=8)
178   ‘name162‘ => string ‘value162‘ (length=8)
179   ‘name163‘ => string ‘value163‘ (length=8)
180   ‘name164‘ => string ‘value164‘ (length=8)
181   ‘name165‘ => string ‘value165‘ (length=8)
182   ‘name166‘ => string ‘value166‘ (length=8)
183   ‘name167‘ => string ‘value167‘ (length=8)
184   ‘name168‘ => string ‘value168‘ (length=8)
185   ‘name169‘ => string ‘value169‘ (length=8)
186   ‘name170‘ => string ‘value170‘ (length=8)
187   ‘name171‘ => string ‘value171‘ (length=8)
188   ‘name172‘ => string ‘value172‘ (length=8)
189   ‘name173‘ => string ‘value173‘ (length=8)
190   ‘name174‘ => string ‘value174‘ (length=8)
191   ‘name175‘ => string ‘value175‘ (length=8)
192   ‘name176‘ => string ‘value176‘ (length=8)
193   ‘name177‘ => string ‘value177‘ (length=8)
194   more elements...
195
196 Chrome Version 52.0.2743.116 m (64-bit)
197 150-180
198 array (size=156)
199   ‘name44‘ => string ‘value44‘ (length=7)
200   ‘name45‘ => string ‘value45‘ (length=7)
201   ‘name46‘ => string ‘value46‘ (length=7)
202   ‘name47‘ => string ‘value47‘ (length=7)
203   ‘name48‘ => string ‘value48‘ (length=7)
204   ‘name49‘ => string ‘value49‘ (length=7)
205   ‘name50‘ => string ‘value50‘ (length=7)
206   ‘name51‘ => string ‘value51‘ (length=7)
207   ‘name52‘ => string ‘value52‘ (length=7)
208   ‘name53‘ => string ‘value53‘ (length=7)
209   ‘name54‘ => string ‘value54‘ (length=7)
210   ‘name55‘ => string ‘value55‘ (length=7)
211   ‘name56‘ => string ‘value56‘ (length=7)
212   ‘name57‘ => string ‘value57‘ (length=7)
213   ‘name58‘ => string ‘value58‘ (length=7)
214   ‘name59‘ => string ‘value59‘ (length=7)
215   ‘name60‘ => string ‘value60‘ (length=7)
216   ‘name61‘ => string ‘value61‘ (length=7)
217   ‘name62‘ => string ‘value62‘ (length=7)
218   ‘name63‘ => string ‘value63‘ (length=7)
219   ‘name64‘ => string ‘value64‘ (length=7)
220   ‘name65‘ => string ‘value65‘ (length=7)
221   ‘name66‘ => string ‘value66‘ (length=7)
222   ‘name67‘ => string ‘value67‘ (length=7)
223   ‘name68‘ => string ‘value68‘ (length=7)
224   ‘name69‘ => string ‘value69‘ (length=7)
225   ‘name70‘ => string ‘value70‘ (length=7)
226   ‘name71‘ => string ‘value71‘ (length=7)
227   ‘name72‘ => string ‘value72‘ (length=7)
228   ‘name73‘ => string ‘value73‘ (length=7)
229   ‘name74‘ => string ‘value74‘ (length=7)
230   ‘name75‘ => string ‘value75‘ (length=7)
231   ‘name76‘ => string ‘value76‘ (length=7)
232   ‘name77‘ => string ‘value77‘ (length=7)
233   ‘name78‘ => string ‘value78‘ (length=7)
234   ‘name79‘ => string ‘value79‘ (length=7)
235   ‘name80‘ => string ‘value80‘ (length=7)
236   ‘name81‘ => string ‘value81‘ (length=7)
237   ‘name82‘ => string ‘value82‘ (length=7)
238   ‘name83‘ => string ‘value83‘ (length=7)
239   ‘name84‘ => string ‘value84‘ (length=7)
240   ‘name85‘ => string ‘value85‘ (length=7)
241   ‘name86‘ => string ‘value86‘ (length=7)
242   ‘name87‘ => string ‘value87‘ (length=7)
243   ‘name88‘ => string ‘value88‘ (length=7)
244   ‘name89‘ => string ‘value89‘ (length=7)
245   ‘name90‘ => string ‘value90‘ (length=7)
246   ‘name91‘ => string ‘value91‘ (length=7)
247   ‘name92‘ => string ‘value92‘ (length=7)
248   ‘name93‘ => string ‘value93‘ (length=7)
249   ‘name94‘ => string ‘value94‘ (length=7)
250   ‘name95‘ => string ‘value95‘ (length=7)
251   ‘name96‘ => string ‘value96‘ (length=7)
252   ‘name97‘ => string ‘value97‘ (length=7)
253   ‘name98‘ => string ‘value98‘ (length=7)
254   ‘name99‘ => string ‘value99‘ (length=7)
255   ‘name100‘ => string ‘value100‘ (length=8)
256   ‘name101‘ => string ‘value101‘ (length=8)
257   ‘name102‘ => string ‘value102‘ (length=8)
258   ‘name103‘ => string ‘value103‘ (length=8)
259   ‘name104‘ => string ‘value104‘ (length=8)
260   ‘name105‘ => string ‘value105‘ (length=8)
261   ‘name106‘ => string ‘value106‘ (length=8)
262   ‘name107‘ => string ‘value107‘ (length=8)
263   ‘name108‘ => string ‘value108‘ (length=8)
264   ‘name109‘ => string ‘value109‘ (length=8)
265   ‘name110‘ => string ‘value110‘ (length=8)
266   ‘name111‘ => string ‘value111‘ (length=8)
267   ‘name112‘ => string ‘value112‘ (length=8)
268   ‘name113‘ => string ‘value113‘ (length=8)
269   ‘name114‘ => string ‘value114‘ (length=8)
270   ‘name115‘ => string ‘value115‘ (length=8)
271   ‘name116‘ => string ‘value116‘ (length=8)
272   ‘name117‘ => string ‘value117‘ (length=8)
273   ‘name118‘ => string ‘value118‘ (length=8)
274   ‘name119‘ => string ‘value119‘ (length=8)
275   ‘name120‘ => string ‘value120‘ (length=8)
276   ‘name121‘ => string ‘value121‘ (length=8)
277   ‘name122‘ => string ‘value122‘ (length=8)
278   ‘name123‘ => string ‘value123‘ (length=8)
279   ‘name124‘ => string ‘value124‘ (length=8)
280   ‘name125‘ => string ‘value125‘ (length=8)
281   ‘name126‘ => string ‘value126‘ (length=8)
282   ‘name127‘ => string ‘value127‘ (length=8)
283   ‘name128‘ => string ‘value128‘ (length=8)
284   ‘name129‘ => string ‘value129‘ (length=8)
285   ‘name130‘ => string ‘value130‘ (length=8)
286   ‘name131‘ => string ‘value131‘ (length=8)
287   ‘name132‘ => string ‘value132‘ (length=8)
288   ‘name133‘ => string ‘value133‘ (length=8)
289   ‘name134‘ => string ‘value134‘ (length=8)
290   ‘name135‘ => string ‘value135‘ (length=8)
291   ‘name136‘ => string ‘value136‘ (length=8)
292   ‘name137‘ => string ‘value137‘ (length=8)
293   ‘name138‘ => string ‘value138‘ (length=8)
294   ‘name139‘ => string ‘value139‘ (length=8)
295   ‘name140‘ => string ‘value140‘ (length=8)
296   ‘name141‘ => string ‘value141‘ (length=8)
297   ‘name142‘ => string ‘value142‘ (length=8)
298   ‘name143‘ => string ‘value143‘ (length=8)
299   ‘name144‘ => string ‘value144‘ (length=8)
300   ‘name145‘ => string ‘value145‘ (length=8)
301   ‘name146‘ => string ‘value146‘ (length=8)
302   ‘name147‘ => string ‘value147‘ (length=8)
303   ‘name148‘ => string ‘value148‘ (length=8)
304   ‘name149‘ => string ‘value149‘ (length=8)
305   ‘name150‘ => string ‘value150‘ (length=8)
306   ‘name151‘ => string ‘value151‘ (length=8)
307   ‘name152‘ => string ‘value152‘ (length=8)
308   ‘name153‘ => string ‘value153‘ (length=8)
309   ‘name154‘ => string ‘value154‘ (length=8)
310   ‘name155‘ => string ‘value155‘ (length=8)
311   ‘name156‘ => string ‘value156‘ (length=8)
312   ‘name157‘ => string ‘value157‘ (length=8)
313   ‘name158‘ => string ‘value158‘ (length=8)
314   ‘name159‘ => string ‘value159‘ (length=8)
315   ‘name160‘ => string ‘value160‘ (length=8)
316   ‘name161‘ => string ‘value161‘ (length=8)
317   ‘name162‘ => string ‘value162‘ (length=8)
318   ‘name163‘ => string ‘value163‘ (length=8)
319   ‘name164‘ => string ‘value164‘ (length=8)
320   ‘name165‘ => string ‘value165‘ (length=8)
321   ‘name166‘ => string ‘value166‘ (length=8)
322   ‘name167‘ => string ‘value167‘ (length=8)
323   ‘name168‘ => string ‘value168‘ (length=8)
324   ‘name169‘ => string ‘value169‘ (length=8)
325   ‘name170‘ => string ‘value170‘ (length=8)
326   ‘name171‘ => string ‘value171‘ (length=8)
327   more elements...
328
329 */
时间: 2024-11-05 19:04:59

浏览器cookie数的相关文章

主流浏览器 Cookie 的大小

目前测试的两种浏览器:Chrome 和 IE . 环境:IIS 7.5 只创建了站点,未做任何配置. Chrome : v36.0.1985.143 m 单个 Cookie 的长度为 4069 个字符(包括 name,但不包括 = 号 ). IE : v11 单个 Cookie 的长度为 5091 个字符(包括 name,但不包括 = 号 ). __________________________________________________ 分隔线 _____________________

selenium webdriver处理浏览器Cookie

有时候我们需要验证浏览器中是否存在某个cookie,因为基于真实的cookie 的测试是无法通过白盒和集成测试完成的.WebDriver 提供了操作Cookie 的相关方法可以读取.添加和删除cookie 信息.WebDriver 操作cookie 的方法有:? getCookies() 获得所有cookie 信息? addCookie(cookie_dict) 添加cookie,必须有name 和value 值? deleteAllCookies() 删除所有cookie 信息? delete

关于浏览器cookie的那些事儿

昨天接到一个小需求,就是在ipad上访问某页面,页面顶部出现一个下载客户端的提示,点击关闭按钮后,提示信息消失,信息存入cookie,在cookie未过期之前,除非用户自己清除浏览器的cookie,否则此提示信息不再显示.像类似这样的需求非常常见,而网站上使用cookie技术也比比皆是.今天就抽空整理下关于浏览器cookie的那些事儿.有些信息一笔带过,未做详细描述.如描述当中有错误,欢迎大家指出. 1. Cookie介绍 cookie的传递流程是用户在访问站点时,服务器端生成cookie,发送

Java+selenium如何清理浏览器Cookie

一.场景:在未注销系统切换不同账号登录系统下,登录会有浏览器缓存,导致登录时间异常缓慢.跟开发浏览器缓存处理机制有关系. 二.解决方法: 获取浏览器Cookie,在Login方法前增加清除缓存的代码. import org.openqa.selenium.Cookie; //获得cookie Set<Cookie> coo = driver.manage().getCookies(); //打印Cookie logger.info(coo); //清除所有的缓存 driver.manage()

浏览器cookie那些事儿

1.介绍 ①什么是cookie 页面用来保存信息 --比如,自动登录,记住用户名等 cookie的特性 --同一个网站中所有页面共享一套cookie --数量大小有限 --过期时间 js中使用cookie document.cookie ②cookie的使用 设置cookie --格式 :名字=值 --不会覆盖 --过期时间:expires=时间(如果没有指定过期时间,默认浏览器窗口关闭过期) >>日期对象使用 --封装函数 1 //设置存cookie 2 //时间以毫秒为单位,请记得换算好时

浏览器 cookie session

浏览器的cookie被禁用的话,则服务端的session不起作用 session是基于cookie实现的, 还是办理会员卡的问题, cookie客户端支持,即客户手上的会员卡记录了所有信息, session服务端支持,即客户端的会员卡只记录会员卡号,所有信息记录在服务器上, 因此,服务端支持还是需要客户端提供jsonid

关于浏览器cookie的小知识

浏览器对于总的cookie数量是没有限制的,但是对于每个域名的cookie数量是有限制的. 一,不同的浏览器,对于一个域名的cookie数量限制上限是不同的: 1,IE6以下版本,最多20个.IE7以上版本最多50个: 2,FireFox最多50个: 3,opera最多30个: 4,chrome和safari最多没有限制,但是过多的cookie会让header大小超过服务器处理的限制,导致错误发生: 二,不同的浏览器如果cookie过多会有什么处理机制: 1,Firefox会随机请理过多的coo

ios内嵌浏览器cookie保存

// //  FMUIWebViewBridge.h //  sgcard // //  Created by Apple on 13-9-10. // // #import <Foundation/Foundation.h> #import <CoreLocation/CoreLocation.h> #import <UIKit/UIKit.h> #import "FMLayerWebView.h" @interface FMUIWebViewBr

使用浏览器cookie

1.创建Cookie <script runat="server"> protected void btnAdd_Click(object sender, EventArgs e) { Response.Cookies["message"].Value = txtCookieValue.Text;//对文本框输入的内容创建Cookie } </script> <form id="form1" runat="