当前位置: 移动技术网 > IT编程>开发语言>其他编程 > 如何获知所有的Cookie?

如何获知所有的Cookie?

2017年12月08日  | 移动技术网IT编程  | 我要评论

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>

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网