C
c676228
Hi All
I have the following code which we want the query string value to be passed
from domain A to domain B.
www.domain1.com/program1.asp?12345
then we later on if customer navigates from domain1 to domain2, it should
bececome like this:
www.domain2.com/whatever.asp?12345
Suddenly we found out it only works in IE 7.0 and not working in firefox.
the code is as follow:
Dim HttpStr, LiveFlag
LiveFlag=True
If LiveFlag Then
HttpStr="https://"
Else
HttpStr="http://"
End If
pcnumber = Request.ServerVariables("QUERY_STRING")
If NOT isNULL(pcnumber) and Len(pcnumber)>=5 and Len(pcnumber)<=7 Then
Response.Cookies("id") = pcnumber
Else
id = Request.Cookies("id")
If ((IsNull(Trim(id))) OR (Trim(Len(id)) = 0)) Then
Response.Cookies("id") ="56789"
Else
Response.Cookies("id")=id
End If
End If
Response.Cookies("id").Domain = ".domain1.com"
Response.Cookies("id").Expires = "December 31, 2020"
Response.cookies("id").path="/"
id = Request.Cookies("id")
I have a function which is used to write a link dynamically for domain2, so
the id could be attached to the link:
Function WriteLinkPgm(byVal Domain2, byVal Pgm, byVal DisplayText)
WriteLinkPgm="<A HREF=" & HttpStr & Domain2 & Pgm & "?" & id & ">" &
DisplayText & "</A>"
End Function
The id is attached in IE 7.0 and but firefox doesn't follow that.
it always has the format like this in firefox:
www.domain2.com/whatever.asp?56789
It seems that it never get 12345 query string
What's going on here? Can you guys shed light on me?
thank you so much.
I have the following code which we want the query string value to be passed
from domain A to domain B.
www.domain1.com/program1.asp?12345
then we later on if customer navigates from domain1 to domain2, it should
bececome like this:
www.domain2.com/whatever.asp?12345
Suddenly we found out it only works in IE 7.0 and not working in firefox.
the code is as follow:
Dim HttpStr, LiveFlag
LiveFlag=True
If LiveFlag Then
HttpStr="https://"
Else
HttpStr="http://"
End If
pcnumber = Request.ServerVariables("QUERY_STRING")
If NOT isNULL(pcnumber) and Len(pcnumber)>=5 and Len(pcnumber)<=7 Then
Response.Cookies("id") = pcnumber
Else
id = Request.Cookies("id")
If ((IsNull(Trim(id))) OR (Trim(Len(id)) = 0)) Then
Response.Cookies("id") ="56789"
Else
Response.Cookies("id")=id
End If
End If
Response.Cookies("id").Domain = ".domain1.com"
Response.Cookies("id").Expires = "December 31, 2020"
Response.cookies("id").path="/"
id = Request.Cookies("id")
I have a function which is used to write a link dynamically for domain2, so
the id could be attached to the link:
Function WriteLinkPgm(byVal Domain2, byVal Pgm, byVal DisplayText)
WriteLinkPgm="<A HREF=" & HttpStr & Domain2 & Pgm & "?" & id & ">" &
DisplayText & "</A>"
End Function
The id is attached in IE 7.0 and but firefox doesn't follow that.
it always has the format like this in firefox:
www.domain2.com/whatever.asp?56789
It seems that it never get 12345 query string
What's going on here? Can you guys shed light on me?
thank you so much.