Forums

ASP

This topic is locked

How to use global.asa

Posted 18 Jul 2002 04:22:00
1
has voted
18 Jul 2002 04:22:00 kenneth manuel posted:
Please help me on how can i make use of global.asa. thanks

Replies

Replied 21 Jul 2002 07:31:32
21 Jul 2002 07:31:32 aegis kleais replied:
If you're using IIS, create an Application in your website's root directory, then just create a file called global.asa and stick it in your site's root directory.

It's contents are:

<Script Language="VBScript" Runat="Server">

Sub Application_OnStart
... commands when server boots up are placed here
End Sub

Sub Application_OnEnd
... commands when server shuts down or app fails are placed here
End Sub

Sub Session_OnStart
.. commands when session is started are placed here
End Sub

Sub Session_OnEnd
... commands when session expires (not abandons) are placed here
End Sub

</script>

Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])

Reply to this topic