|
The web_add_cookie function adds a new cookie. If the name and path match and existing cookie,
the existing cookie is overwritten with the new one. If the "expires" date has past, the cookie is deleted.
Although Vusers handle cookies automatically, there may be cases when you need to manually control the cookies.
Note: Vusers do not use (access or modify) the cookies that are stored by your browser. Instead,
each Vuser uses the cookies that are sent to the Vuser by the server host at runtime.
These cookies are maintained only temporarily-while the Vuser script runs.
web_add_cookie intended use is to add cookies usually stored in the browser, prior to starting the run.
This function is supported for all Web Vusers and for WAP Vusers running in HTTP or Wireless Session Protocol (WSP)
replay mode.
Web_add_cookie的功能是增加一个新的cookie,如果相同路径和名字的cookie存在,那么就要覆盖原来的cookie,
如果过期,cookie将会被删除.尽管Vuser是自动处理cookies的,你也是可以手工控制的(具体怎么做我也还不知道)
注意:Vusers不会(**和修改)使用由浏览器存贮的cookies,相反,每一个Vuser用户都可以使用由主机在运行时发送给每一个用户的cookies
这些cookies仅仅被Vuser脚本运行时暂时的使用
Web_cookie的功能(web_add_cookie, web_remove_cookie, and web_cleanup_cookies)仅仅是控制这些临时的cookies
web_add_cookie 通常是用来增加在开始运行以前的浏览器中的cookies
这些功能支持所有的WEB用户和也支持WAP Vusers running in HTTP or
Wireless Session Protocol (WSP) replay mode.
我翻译的不好,希望高手给翻译一下!让大家看看 |
|