日期:2014-05-17  浏览次数:20999 次

如何创建永久性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年后.