(编辑:jimmy 日期: 2024/11/13 浏览:2)
1.撼雪喷云之显示Cookie
<TABLE BORDER="2">
<Thead>
<TH>Cookie名</TH>
<TH>Cookie值</TH>
<TH>删除Cookie</TH>
</Thead>
<%
Dim Item
%>
<tr>
<td><% = Item %></td>
<td><% = Request.Cookies(Item) %></td>
<td><A HREF="Cookie_process.asp?name=<%=
Server.URLEncode(Item) %>">删除</A></td>
' 循环检查,收集Request.Cookies里的每一个Cookie并显示出来.
</tr>
<%
Next
%>
</TABLE>
2.撼雪喷云之添加Cookie
<FORM ACTION="Cookie_process.asp" METHOD="get">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td>Cookie名:</td>
<td>Cookie值:</td>
<td></td>
</tr>
<tr>
<td><INPUT TYPE="text" NAME="name"></INPUT></td>
<td><INPUT TYPE="text" NAME="value"></INPUT></td>
<td><INPUT TYPE="submit" VALUE="添加"></td>
</tr>
</TABLE>
</FORM>