首页>>WEB技术资料

如何在vbscript中读取cookie的程序函数

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


中国网站建设指南中心
域名 空间
建站 推广
网络营销 网站策划
网站盈利 网络品牌
网络创业 基础知识
行业门户 营销网站
个人网站 电子政务
搜索优化 前沿动态v
业内资讯 电子商务
网站技术 申办年检
流量统计 专家加盟




网站建设 北京网站建设 网站建设北京