找回密码
 加入
搜索
查看: 2334|回复: 2

[IE类操作] [已解决]如何清除session cookie

[复制链接]
发表于 2011-2-25 18:34:07 | 显示全部楼层 |阅读模式
本帖最后由 zhaicheng 于 2011-5-18 22:14 编辑

$Obj = _IEDocGetObj($oIE)

$Obj.cookie=""

尝试用这个清除session cookie,可是无法清除。另外,也无法赋新值,貌似只读了一样
傲游的cookie editor 插件可以做到
发表于 2011-3-2 16:23:45 | 显示全部楼层
the cookie property is read/write, but it doesn't work the way you are thinking it does.

When you read the cookie property, it returns the full set of name/value pairs for all cookies (and the cookie properties).

When you write to the cookie property, it adds a new name/value pair to the cookie property.

To delete a cookie, you must rewrite the name/value conbination to the cookie property with an expiration in the past.

For example:

$Obj.cookie = $cookie_name &= "=; expires=Thu, 01-Jan-1970 00:00:01 GMT"
发表于 2012-5-25 23:09:35 | 显示全部楼层
研究了半天还是不会
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-30 09:30 , Processed in 0.096464 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表