Results 1 to 2 of 2

Thread: Global.asa

  1. #1
    Join Date
    Dec 1969

    Default Global.asa

    Is there another way to use the info in a global.asa even though I cannot use the global.asa where my site is going to be stored. Specifically this code...<BR><BR>Sub Session_OnStart<BR><BR>&#039;SET CART VARIABLES<BR> Const cartAttributes = 25<BR> Const maxCartItems = 50<BR> ReDim arrcart(cartAttributes,maxCartItems)<BR><BR> Session("MyCart") = arrcart<BR> Session("cartItem") = 0<BR><BR>&#039;TRACK ACTIVE USERS<BR><BR> &#039; Change Session Timeout to 20 minutes (if you need to)<BR> Session.Timeout = 20<BR> &#039; Set a Session Start Time<BR> &#039; This is only important to assure we start a session<BR> Session("Start") = Now<BR> &#039; Increase the active visitors count when we start the session<BR> Application.Lock<BR> Application("ActiveUsers") = Application("ActiveUsers") + 1<BR> Application.UnLock<BR>End Sub

  2. #2
    Join Date
    Dec 1969

    Default RE: Global.asa

    Insert the code on the page the user first enters. That should do it.

Posting Permissions

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