PDA

Click to See Complete Forum and Search --> : Application Variable and Ordinary Variable


Jan 7th, 2001, 11:47 PM
What makes the difference between creating an application Variable and a ordinary variable created in global.asa file,
since both can be used in all the pages of the application.

Would any one answer my doubt.

Deepak S

G.Kumaraguru
Jan 8th, 2001, 12:02 AM
There are
APPLICATION VARIABLES
SESSION VARAIBLES
And Variables u use on a Per page(*.asp) basis

The difference However is an Application VAriable is
common to all those Users of the application.


Let Say you have asp application and 100 users access it at a time. When you store something in an application variable
It is common for all those 100 and this is a variable
on a per application basis.

Now If it is a session variable it is for a particular session.Even if a single user opens 100 sessions ,each session variable can have different values.

The ordinary Variables - will be out of scope after the page
they are declared is completely processed and deliver to the user.