Hi all,

When using the Application object in ASP inserted into the global.ASA file, can you do the following.

1. Can you initialise objects that will be active throughout the session

2. Will they be active throughout the session and destroy when the session timeout, or will you have to design an auto function.

Exampe is as follows.

VB Code:
  1. Sub Application_OnBegin()
  2.  
  3. Application("Errorpage") = "errorhandling.asp"
  4. Application("restrictAccess") = "accesrestricted.asp"
  5. Application("Visits") = Application("Visits") + 1
  6.  
  7. End Sub
  8.  
  9. Sub Session_OnStart()
  10.  
  11.  
  12. Session("loggedOn") = False
  13. Session.Timeout = 10
  14. Session.LCID = Getlocale_ID()
  15. Session.CodePage = GetCodePage_ID()
  16.  
  17. End Sub
  18.  
  19. Dim Cart_Dict
  20. Cart_Dict = Server.CreateObject("Scripting.Dictionary")
  21. 'Do database Connections
  22.  
  23. End Sub
  24.  
  25. Sub Session_Onend()
  26.  
  27. 'destroy stuff here
  28.  
  29. End Sub

Will this be visable or will it kick and scream?

ta all

Kai