Global.asa Database problem

Results 1 to 2 of 2

Thread: Global.asa Database problem

  1. #1
    Join Date
    Dec 1969

    Default Global.asa Database problem

    Hello !! <BR><BR>I want to write in my Database a record when the Session of the user is over so i put the following code into Global.asa file in <BR><BR>If I put in my Global Asa in Sub Session_OnEnd. <BR><BR>Set Cnn_Ut = Server.CreateObject("ADODB.Connection") <BR>Cnn_Ut.Provider = "sqloledb" <BR>ProvStr = "Server=GECO;Database=utenti;Trusted_Connection=ye s;" <BR>Cnn_ut.Open ProvStr <BR><BR>Cnn_Ut.Execute "INSERT INTO TblPunteggioSessione (IdUtente) VALUES (31)" <BR><BR>This doesn&#039;t work ! <BR>I return no error but the script do nothing. <BR><BR>The script works fine in a generic ASP file. <BR><BR>Thanks for you help. <BR>Matteo Mazzoni

  2. #2
    Join Date
    Dec 1969

    Default this is a very common problem

    The session_onend event is notorious for not always firing. In other words, it is generally unreliable.<BR><BR>Sorry, I think you&#039;ll have to look for an alternative.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts