% PageRef=Request.ServerVariables("HTTP_REFERER") '这是当前的PageRef FirstTimePageRef=Request.Cookies("FirstTime")("PageRef") '尝试从Cookie中取以前保存的PageRef RefID=Request.QueryString("RefID") '这个RefID字符串根据实际修改 FirstTimeRefID=Request.Cookies("FirstTime")("RefID") if FirstTimePageRef="" then '如果以前没有保存过(也就是说,本次是第一次进站),或者以前来过,但是没有PageRef(比如直接输的网址) Response.Cookies("FirstTime")("PageRef")=PageRef '在Cookie中保存当前的PageRef Response.Cookies("FirstTime")("RefID")=RefID Response.Cookies("FirstTime").Expires = DateAdd("yyyy",1,date()) '设过期日期为1年 end if %>
Current RefID:<%=Request.ServerVariables("QUERY_STRING")%>
First Time RefID: <%=request.Cookies("FirstTime")("RefID")%>
Note: our system will only record the visitor's first time RefID. If the visitor is from RefID 78 in the first time, and make the payment after a few weeks even one year, our system will also know the visitor is from RefID 78, we will also pay you the reseller fee 50% if you are the reseller 78.
clean first time RefID record for another test
go to payment page