RSS
热门关键字:  性福人生  生化危机  虚拟人生  o ice  秘密潜入1

一个在vbscript中读取cookie的程序函数

来源: 作者:无忧d下载站采集 时间:2008-04-05 Tag: 点击:
 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
最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册