|
发表于 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" |
|