欢迎光临
我们一直在努力

asp中的cookie

建站超值云服务器,限时71元/月

请教cookie的 使用方法!

多谢!

例子用于接收cookies.

<!– cookie display table –>

<table border="2">

<thead>

<th>cookie name</th>

<th>cookie value</th>

<th>delete cookie</th>

</thead>

<%

dim item

loop through the cookie collection displaying each cookie we find

for each item in request.cookies

%>

<tr>

<td><% = item %></td>

<td><% = request.cookies(item) %></td>

<td><a href="cookie_process.asp?name=<%= server.urlencode(item) %>">delete this cookie!</a></td>

</tr>

<%

next

%>

</table>

<!– cookie adding form –>

<form action="cookie_process.asp" method="get">

<table border="0" cellspacing="0" cellpadding="0">

<tr>

<td>cookie name:</td>

<td>cookie value:</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="add cookie!"></td>

</tr>

</table>

</form>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » asp中的cookie
分享到: 更多 (0)

相关推荐

  • 暂无文章