WEB开发 - VBScript - 应用技巧
   
一个在vbscript中读取cookie的程序函数
作者:unknown 更新时间: 2005-03-15  
 


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

 
上一篇      目录      下一篇
来源:unknown
本站相关教 程
vbscript判断email地址的合法性
vbscript和javascript互相调用
PHP, JScript和VBScript函数和类的语法
将VB中的CLASS结合到VBscript中来
在ASP页里面注册DLL的VBScript CLASS
纯使用VBScript来实现加密
vbscript错误代码及对应解释大全
分页对象(vbscript版)