Re: Global.asa not firing
From: qaz (ngnews_at_uslex.net)
Date: 01/23/05
- Next message: eXistenZ|: "insertion du contenu d'un tableau dans une table"
- Previous message: qaz: "Re: Global.asa not firing"
- In reply to: John Blessing: "Re: Global.asa not firing"
- Next in thread: Aaron [SQL Server MVP]: "Re: Global.asa not firing"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 23 Jan 2005 09:24:59 -0600
Very helpful response - unfortunately I still have the problem. Session
cookies are enabled in the browser (I use them successfully on other pages);
I have no "funny" characters in the local server name; Session State is
enabled in internet services manager and timeout is 20 min; I deleted the
website in IIS (v6) and recreated it. Ugh! It still does not fire
global.asa.
Below is a complete copy of my global.asa file, if that would help:
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
'=======================================================================
Sub Application_OnStart
Application.Lock
Application("CurrentUsers") = 0
Application("test") = "Application"
Application.Unlock
End Sub
'=======================================================================
Sub Session_OnStart
Application("CurrentUsers") = Application("CurrentUsers") + 1
session("test") = "Session"
session("IDUser") = 0
'--- force all users to begin on home page ---
response.redirect "default.asp"
End Sub
'===========================================================================
====
Sub Session_OnEnd
Application("CurrentUsers") = Application("CurrentUsers") - 1
End Sub
'===========================================================================
====
Sub Application_OnEnd
End Sub
</SCRIPT>
"John Blessing" <newsgroup@LbeHelpdesk.com> wrote in message
news:35hcf0F4mhts6U1@individual.net...
>
> Make sure session cookies are enabled in your browser - Tools, Internet
> Options, Privacy, Advanced, check the box "Always allow session cookies"
>
> If you are using IE 5.5 or IE 6.0, and your local server name has an
> underscore or other non-alphanumeric character (other than a dash) in the
> name, then cookies will not work correctly. One workaround is to access
the
> machine by IP address; others include renaming the server or at least
adding
> an entry to the clients' hosts files, or alter your local DNS/WINS, or add
a
> new host header to the web server, with a more friendly name. For more
info,
> search http://msdn.microsoft.com/ for Q312461 and Q316112.
>
> Make sure you haven't disabled session state in Internet Services Manager,
> and that it has an appropriate timeout value:
> Open the Internet Services Manager MMC tool, and expand 'Web Sites'
> Right-click 'Default Web Site' or the application in question, and select
> 'Properties'
> On the 'Home Directory' tab, click the 'Configuration...' button
> On the 'Options' tab, make sure 'Enable session state' is checked and that
> the timeout value (in minutes) is sufficient.
>
>
> Also, try removing and re-creating the application in the Internet
Services
> Manager MMC tool. this often fixes problems like this.
>
>
>
> --
> John Blessing
>
> http://www.LbeHelpdesk.com - Help Desk software priced to suit all
> businesses
> http://www.room-booking-software.com - Schedule rooms & equipment bookings
> for your meeting/class over the web.
> http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
> "qaz" <ngnews@uslex.net> wrote in message
> news:eilPHmOAFHA.2316@TK2MSFTNGP15.phx.gbl...
> > My evidence is pretty good. In Application_OnStart I created an
> > application
> > variable named Application("test") and set it equal to "Application".
In
> > Session_OnStart I set a session variable called session("test") =
> > "Session".
> > I put response.write statements in test.asp and fired the page.
> >
> >
> > "Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
> > news:%23DfL7QOAFHA.2224@TK2MSFTNGP14.phx.gbl...
> >> Well, what evidence do you have thatit is not firing? What method is
the
> >> "not firing" occuring in? What is the code in that method?
> >>
> >> Have you seen http://www.aspfaq.com/2076 and http://www.aspfaq.com/2078
?
> >>
> >> --
> >> http://www.aspfaq.com/
> >> (Reverse address to reply.)
> >>
> >>
> >>
> >>
> >> "qaz" <ngnews@uslex.net> wrote in message
> >> news:eXaQUFOAFHA.3820@TK2MSFTNGP11.phx.gbl...
> >> > For some reason my global.asa file is not firing. I have it located
in
> >> the
> >> > root of my website (e.g., wwwroot\mywebsite\global.asa) and I have
the
> >> web
> >> > site configured as an "application" in IIS. When I modified the file
I
> >> also
> >> > stopped and restarted the web server.
> >> >
> >> > Can anyone give me some ideas as to why it is not firing?
> >> >
> >> > Thanks
> >> >
> >> >
> >>
> >>
> >
> >
>
>
- Next message: eXistenZ|: "insertion du contenu d'un tableau dans une table"
- Previous message: qaz: "Re: Global.asa not firing"
- In reply to: John Blessing: "Re: Global.asa not firing"
- Next in thread: Aaron [SQL Server MVP]: "Re: Global.asa not firing"
- Messages sorted by: [ date ] [ thread ]