ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 16th, 2000, 10:25 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
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 />

Reply With Quote
  #2  
Old February 21st, 2000, 02:13 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<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 />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > about global.asa


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT