cjkenworthy
Programmer
I've made a global.asa file for my site to control session timeouts and maintain track of number of users logged in.
How do I get dreamweaver to work with the global.asa file?
Where do i put it? Will it work in the directory where the rest of the files are on my server .../inetpub/
Here is the file below. How would I print the 'visitors' application variable below in any file?
Thanks, Chris.
<script language="vbscript" runat="server">
sub Application_OnStart
Application("visitors"
=0
Session.Timeout = 420
end Sub
Sub Session_OnStart
Application.Lock
Application("visitors"
=Application("visitors"
+1
Application.UnLock
End Sub
Sub Session_OnEnd
Application.Lock
Application("visitors"
=Application("visitors"
-1
Application.UnLock
End Sub
</script>
code ok?
How do I get dreamweaver to work with the global.asa file?
Where do i put it? Will it work in the directory where the rest of the files are on my server .../inetpub/
Here is the file below. How would I print the 'visitors' application variable below in any file?
Thanks, Chris.
<script language="vbscript" runat="server">
sub Application_OnStart
Application("visitors"

Session.Timeout = 420
end Sub
Sub Session_OnStart
Application.Lock
Application("visitors"


Application.UnLock
End Sub
Sub Session_OnEnd
Application.Lock
Application("visitors"


Application.UnLock
End Sub
</script>
code ok?