I am trying to build an e-commerce application that switches to the HTTPS protocol immediately before payment information is collected. I have stored the OrderID in a session variable, but keep loosing it -- unfortunately not 100%, leaving me to debug a sporadic problem.
To debug, I developed a set of pages - some on the HTTPS/SSL side, others on the HTTP/std side. Using MSIE 6.0, the variables are passed correctly each and every time. Netscape 4.x and 6 do not. They maintain a seperate copy of the session variables for each protocol, and as I jump back and forth, the variables update accordingly - just that they do not share the exact same value.
Two of the files contain the following code:
File 1: (HTTPS) varpass1_2.asp
File 2: (HTTP) varpass2_1.asp
By clicking the links, the sequence from IE is:
By clicking the links, the sequence from NS 4 and 6 is:
To debug, I developed a set of pages - some on the HTTPS/SSL side, others on the HTTP/std side. Using MSIE 6.0, the variables are passed correctly each and every time. Netscape 4.x and 6 do not. They maintain a seperate copy of the session variables for each protocol, and as I jump back and forth, the variables update accordingly - just that they do not share the exact same value.
Two of the files contain the following code:
File 1: (HTTPS) varpass1_2.asp
Code:
Variable #1 is currently '<%= Session("var1") %>'
<BR>Add 1 to Variable #1 <% Session("var1") = Session("var1") + 1 %>
<BR>Variable #1 is now '<%= Session("var1") %>'
<P> Variable #2 is currently '<%= Session("var2") %>'
<BR>Add character 'a' to Variable #2 <% Session("var2") = Session("var2") & "a" %>
<BR>Variable #2 is now '<%= Session("var2") %>'
<BR><A HREF="[URL unfurl="true"]http://....../varpass2_1.asp">std[/URL] Variable Page (1)</A>
File 2: (HTTP) varpass2_1.asp
Code:
Variable #1 is currently '<%= Session("var1") %>'
<BR>Subtract 3 from Variable #1 <% Session("var1") = Session("var1") - 3 %>
<BR>Variable #1 is now '<%= Session("var1") %>'
<P> Variable #2 is currently '<%= Session("var2") %>'
<BR>Remove first character if 2 or more characters exist <% If (Len(Session("var2")) > 2) Then Session("var2") = mid(Session("var2"),2) End If %>
<BR>Variable #2 is now '<%= Session("var2") %>'
<BR><A HREF="[URL unfurl="true"]https://...../Secure/test/varpass1_2.asp">SSL[/URL] Variable Page (2)</A>
By clicking the links, the sequence from IE is:
Code:
var1 var2
5 -,- (HTTPS)
2 ,- (HTTP)
3 ,-a (HTTPS)
0 -a (HTTP)
1 -aa (HTTPS)
-2 aa (HTTP)
By clicking the links, the sequence from NS 4 and 6 is:
Code:
var1 var2
5 -,- (HTTPS)
-3 <null> (HTTP)
6 -,-a (HTTPS)
-6 <null> (HTTP)
7 -,-aa (HTTPS)