Global.asa error

Results 1 to 2 of 2

Thread: Global.asa error

  1. #1
    Join Date
    Dec 1969

    Default Global.asa error

    Hiya all,<BR>Im getting the following global.asa error and I dont know howto solve it... Anyone got any ideas??<BR><BR>--------------------------------<BR>Error Type:<BR>Microsoft VBScript runtime (0x800A000D)<BR>Type mismatch: &#039;Session&#039;<BR>//global.asa, line 8<BR>--------------------------------<BR><BR><BR>with this global.asa:<BR>--------------------------------<BR>&#060;SCRIPT LANGUAGE="VBScript" RUNAT="Server"&#062;<BR>Sub Application_OnStart<BR> &#039; Set our user count to 0 when we start the server<BR> Application("ActiveUsers") = 0<BR>End Sub<BR><BR>Sub Session_OnStart<BR> Session("Start") = Now<BR> Session.Timeout = 20<BR>End Sub<BR><BR>Sub Session_OnEnd<BR> Application.Lock<BR> if Application("ActiveUsers") &#062; 0 then<BR> Application("ActiveUsers") = Application("ActiveUsers") - 1<BR> end if<BR> Application.UnLock<BR> Session("End") = Now<BR>End Sub<BR><BR>&#060;/SCRIPT&#062;<BR>--------------------------------

  2. #2
    Join Date
    Dec 1969

    Default RE: Global.asa error

    note that Now() is a function<BR><BR>Session("Start") = Now() <BR><BR>cheers....

Posting Permissions

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