Example Code:
<%
Response.Buffer=True
data=Request("data0")
if data ="" then data=Empty
Response.Cookies("data1")=data
Response.Cookies("data1").Expires=#July 1,2006#
%>
go to an other page the cookes will
keep in your computer
[ this can be response.redirect "http://newURL" ]
[ also can be action="http://newURL" ]
[ as long as you use Request.Cookies("____") ]
[ tips: same cookies may do exist
between different domains ]
<%
data1=Request.Cookies("data1")
%>
----------------------------------
<%
' txt is a from a submit form data
txt =Request("txt" )
response.cookies("txt")=txt
txt=request.cookies("txt")
%>
常用于会员的登录与注销
使用技巧:
建立网络饼干前建议加上
Response.Buffer=True
来让将建立的网络饼干名称的内容重设
比如在Login登录会员时可用此方法
以免使用到前者的数据
当然同理可推:Logout注销会员时
也可使用此技术让网络饼干完全融化
-----网络安全-----
以上技术看似简单,但其重要性也是
牵连到网络安全,处理不好就经常成为
网络漏洞....特别是在网咖图书馆公共室
办公室会发生,因为多人共同用计算机的机会大
...以知名的大网站...G.Y. 等笔主都曾遇过
网络安全::网络饼干也可成为一个网络大漏洞
网络饼干:乾坤大挪移...偷天换日
就算你的私人计算机饼干都有可能被他人得手
|