function cookievalue(pcook)
lhowlong=len(pcook)
lwhereis=instr(documents.cookie,pcook)
lwhereis=0 then
cookievalue=false
lstartpos=len(documents.cookie)-lwhereis-lhowlong
lstart=right(documents.cookie,lstartpos)
do
lchar=left(lstart,1)
lchar=\";\" then
cookievalue=lend
exit do
lend=lend & lchar
len(lstart)=1 then
cookievalue=lend
exit do
lstart=right(lstart,len(lstart)-1)
end
end
loop
end
end function
最新评论