赞助广告 赞助广告
  当前位置:网络学院服务器邮件服务器 → 一个在vbscript中读取cookie的程序函数
一个在vbscript中读取cookie的程序函数
日期:2001年7月7日 作者:不详 人气: 查看:[大字体 中字体 小字体]
function cookievalue(pcook)
lhowlong=len(pcook)
lwhereis=instr(document.cookie,pcook)
if lwhereis=0 then
cookievalue=false
else
lstartpos=len(document.cookie)-lwhereis-lhowlong
lstartstring=right(document.cookie,lstartpos)
do
lchar=left(lstartstring,1)
if lchar=";" then
cookievalue=lendstring
exit do
else
lendstring=lendstring & lchar
if len(lstartstring)=1 then
cookievalue=lendstring
exit do
else
lstartstring=right(lstartstring,len(lstartstring)-1)
end if
end if
loop
end if
end function

(出处:不详 )

相关文章:
 
相关软件:
 
  特别推荐
  热点TOP10