I've written the following code in the global.asa to update the time the user close the session. The server returns the "HTTP 500 - Error" at any page. I can't find the problem!!!
How can I program it in JScript?
--------------- Global.asa file ----------------
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Application_OnStart
End Sub
Sub Application_OnEnd
End Sub
Sub Session_OnStart
End Sub
Sub Session_OnEnd
Set Data = New Date
Set DB2 = Server.CreateObject ("ADODB.Connection"
DB2.Mode = 3
DB2.Open ("dsn=Audi;"
Set registre = Server.CreateObject("ADODB.Recordset"
registre.Open("Registre", DB2, 1, 2)
While Not registre.EOF
If registre ("Id" = Session("IdReg" Then
registre.Edit
registre ("DataSortida" = Data.getVarDate
registre.Update
End If
registre.MoveNext
Wend
registre.Close
End Sub
</SCRIPT>
---------------------------------------------------
Thanks for all!
How can I program it in JScript?
--------------- Global.asa file ----------------
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Application_OnStart
End Sub
Sub Application_OnEnd
End Sub
Sub Session_OnStart
End Sub
Sub Session_OnEnd
Set Data = New Date
Set DB2 = Server.CreateObject ("ADODB.Connection"
DB2.Mode = 3
DB2.Open ("dsn=Audi;"
Set registre = Server.CreateObject("ADODB.Recordset"
registre.Open("Registre", DB2, 1, 2)
While Not registre.EOF
If registre ("Id" = Session("IdReg" Then
registre.Edit
registre ("DataSortida" = Data.getVarDate
registre.Update
End If
registre.MoveNext
Wend
registre.Close
End Sub
</SCRIPT>
---------------------------------------------------
Thanks for all!