当前位置: 代码迷 >> ASP >> 怎么创建永久性cookie
  详细解决方案

怎么创建永久性cookie

热度:479   发布时间:2012-03-13 11:21:11.0
如何创建永久性cookie
TC31.asp
===========
<%

response.cookies( "A ")= "wang "
response.cookies( "B ")= "bi "
response.cookies( "C ")= "qing "
response.cookies( "D ")= "shen "
response.cookies( "E ")= "zhen "


%>


TC3.asp
=====================
<%
For   each   cookie   in   Request.Cookies
if   Request.cookies(cookie).HasKeys   =false   then
Response.write   cookie   &   "= "   &   Request.Cookies(cookie)& "   ->   "
Response.write   ( " ")  
Else
for   each   key   in   Request.Cookies(cookie)
Response.write   ( " <font   color=blue> ")
Response.write   cookie   &   ".( "&key& ") "   &   "= "   &   Request.Cookies(cookie)(key)
Response.write   ( " </font> ")
next
end   if
next
%>  

用TC32.asp可以显示创建的cookie值,可是为什么我用cookiepa这个工具却看不到我的这些cookie值呢.它只是保存在内存里吗?请教各位大哥.

------解决方案--------------------
保存在COOKIES里面吧
关注中
------解决方案--------------------
永久?过期时间设置一个几MMMM年后.
  相关解决方案