|
-
Jan 18th, 2005, 10:03 PM
#1
Thread Starter
New Member
HELP! Deleting Individual cookie subkeys
Please can someone help me. This is my ASP code:
<%@ LANGUAGE="VBSCRIPT" %>
<%Response.Buffer=true%>
<HTML>
<BODY>
<%
Response.Cookies("List")("item1")="1"
Response.Cookies("List")("item2")="2"
Response.Cookies("List")("item3")="3"
acookie = Request.Cookies("List")
subkeyname = "item3"
Response.Write acookie
Response.Write "<BR><BR>"
acookie.Values.Remove(subkeyname)
%>
I want to understand how to remove individual
subkeys (in this case "item3"). I looked at msdn
to create the code above, but this code keeps
producing this error:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'item3=3&item2=2&125='
/testcookie/try00.asp, line 15
Please can someone tell me what's going wrong?
James
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|