Hi I'm integrating an MD5 script within a login page and for some reason when I moved the site from the testing environment to the live server I started getting an Overflow Error whenever someone tries to login:
The function which this is within is as follows (line 163 is below my debug line, lResult = lResult Xor &H80000000 Xor lX8 Xor lY8):
Please let me know if you need any more code or have any suggestions as to what might be causing the problem, as I said before, it has only stopped working since moving to the live server environment.
Many thanks in advance.
Rob Waite
Code:
Microsoft VBScript runtime error '800a0006'
Overflow: 'lResult'
/***/***.asp, line 163
The function which this is within is as follows (line 163 is below my debug line, lResult = lResult Xor &H80000000 Xor lX8 Xor lY8):
Code:
Private Function AddUnsigned(lX, lY)
Dim lX4
Dim lY4
Dim lX8
Dim lY8
Dim lResult
lX8 = lX And &H80000000
lY8 = lY And &H80000000
lX4 = lX And &H40000000
lY4 = lY And &H40000000
lResult = (lX And &h4FFFFFFF) + (lY And &h4FFFFFFF)
If lX4 And lY4 Then
debug(lResult & "*" & &H80000000 & "*" & lX8 & "*" & lY8)
lResult = lResult Xor &H80000000 Xor lX8 Xor lY8
ElseIf lX4 Or lY4 Then
If lResult And &H40000000 Then
lResult = lResult Xor &HC0000000 Xor lX8 Xor lY8
Else
lResult = lResult Xor &H40000000 Xor lX8 Xor lY8
End If
Else
lResult = lResult Xor lX8 Xor lY8
End If
AddUnsigned = lResult
End Function
Please let me know if you need any more code or have any suggestions as to what might be causing the problem, as I said before, it has only stopped working since moving to the live server environment.
Many thanks in advance.
Rob Waite