|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
about global.asa
<i><b>Originally posted by : nico (nicolelarge@hotmail.com)</b></i><br />I am learning ASP and I have some problems about the Global.asa file.<br />Global.asa is stored at teh root of my site, so i think that's ok<br />But I can't access the items I initialyze in teh Global.<br />Nevertheless I can access those item if I modify teir content from an asp page of my <br />Here is my global.asa (Count the number of user on my site)<br /><br /><br /><SCRIPT LANGUAGE=VBScript RUNAT=Server><br />SUB Application_OnStart<br />Application("nbconn")=0<br />END SUB<br /></SCRIPT><br /><br /><SCRIPT LANGUAGE=VBScript RUNAT=Server><br />SUB Session_OnStart<br />Session.Timeout=1<br />Application.lock<br />Application("nbconn")=Application("nbconn")+1<br />Application("test")="debutappli"<br />Application.unlock<br />END SUB<br /></SCRIPT><br /><br /><SCRIPT LANGUAGE=VBScript RUNAT=Server><br />SUB Session_OnEnd<br />Application.lock<br />Application("nbconn")=Application("nbconn")-1<br />Application.unlock<br />END SUB<br /></SCRIPT><br /><br /><SCRIPT LANGUAGE=VBScript RUNAT=Server><br />SUB Application_OnEnd<br />Application("nbconn")=0<br />Application("test")=""<br />END SUB<br /></SCRIPT><br /><br /><HTML><br /><HEAD><br /><TITLE>Test1</TITLE><br /></HEAD><br /><BODY bgcolor="#3333FF"><br /><br />Here is the "heure.asp" page that should print the number of user: <br /><br />Le serveur vous dit bonjour, à <% = Time %> le <% = Date<br /> %><br />'this first instruction works well<br />'but the message printed on screen is <br />"Vous etes connectes actuellement"<br /></SCRIPT><br /></BODY><br /></HTML><br /><br />Thank you in advance for your answer<br />and as you have guessed, I am french ,so sorry for my english<br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : j</b></i><br />make sure your application root is set. this is what takes care of firing the .asa file<br /><br /><br />------------<br />nico at 2/16/2000 7:25:12 PM<br /><br />I am learning ASP and I have some problems about the Global.asa file.<br />Global.asa is stored at teh root of my site, so i think that's ok<br />But I can't access the items I initialyze in teh Global.<br />Nevertheless I can access those item if I modify teir content from an asp page of my <br />Here is my global.asa (Count the number of user on my site)<br /><br /><br /><SCRIPT LANGUAGE=VBScript RUNAT=Server><br />SUB Application_OnStart<br />Application("nbconn")=0<br />END SUB<br /></SCRIPT><br /><br /><SCRIPT LANGUAGE=VBScript RUNAT=Server><br />SUB Session_OnStart<br />Session.Timeout=1<br />Application.lock<br />Application("nbconn")=Application("nbconn")+1<br />Application("test")="debutappli"<br />Application.unlock<br />END SUB<br /></SCRIPT><br /><br /><SCRIPT LANGUAGE=VBScript RUNAT=Server><br />SUB Session_OnEnd<br />Application.lock<br />Application("nbconn")=Application("nbconn")-1<br />Application.unlock<br />END SUB<br /></SCRIPT><br /><br /><SCRIPT LANGUAGE=VBScript RUNAT=Server><br />SUB Application_OnEnd<br />Application("nbconn")=0<br />Application("test")=""<br />END SUB<br /></SCRIPT><br /><br /><HTML><br /><HEAD><br /><TITLE>Test1</TITLE><br /></HEAD><br /><BODY bgcolor="#3333FF"><br /><br />Here is the "heure.asp" page that should print the number of user: <br /><br />Le serveur vous dit bonjour, à <% = Time %> le <% = Date<br /> %><br />'this first instruction works well<br />'but the message printed on screen is <br />"Vous etes connectes actuellement"<br /></SCRIPT><br /></BODY><br /></HTML><br /><br />Thank you in advance for your answer<br />and as you have guessed, I am french ,so sorry for my english<br />
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > about global.asa |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|