Global.asa

Juniper

Platinum Member
Nov 7, 2001
2,025
1
0
Hey guys,

I have an asp application, and I would like to use global.asa to store the login session. Not sure how I can do it, I've never used global.asa before. I'm on Windows NT 4.0. Do I have to set something in IIS firsthand?

How does IIS know where to look for global.asa?

Thanks...
 

calpha

Golden Member
Mar 7, 2001
1,287
0
0
Been a while since I messed with the global asa, but I'll just shoot from the hip a little.

First----your global asa used depends on how you set up the website w/i IIS.

2nd.....if you go under properties for your website in IIS, there's a setting for application settings....and if I remember right that's where the global.asa stuff is set.

And----in the event that you process host headers on a IIS Server (ie, more then one domain on one IP Address)....it is possible to have more then one global.asa---AFAIR global.asa is set per site/virtual site in IIS.

Hope this helps....sorry if any of it's wrong, ti's all from memory.
 

GtPrOjEcTX

Lifer
Jul 3, 2001
10,784
6
81
something to get you started...

<Script LANGUAGE = VBScript RUNAT = Server>
Sub Session_OnStart
Response.Expires = 0 ' Ensure that this page is not cached
Server.ScriptTimeout = 15 ' Stop server processing after 15 seconds
Session.Timeout = 60 ' End session after 60 minute
End Sub

Sub Session_OnEnd
'put stuff here that you want executed when their session ends
End Sub
</Script>