Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Session vs. Application

Posted 22 Jun 2002 04:25:42
1
has voted
22 Jun 2002 04:25:42 aegis kleais posted:
Over the last week I got to understanding what a Session is. It's not a variables, but more so a state of user visits that can CONTAIN variables of it's instance. ie Session("variablename". I love sessions. They rock.

But now I hear talk of APPLICATION. Someone told me that they exist WEBSITE WIDE. Do the script in the same manner that Sessions do?

ie, if UserA and UserB are on the website at the same time and UserA does something that sets Application("MyNumber" to 10, that if UserB performs an action that reads Application("MyNumber" he should get 10 as well? (I understand that this could not happen with sessions because they are user/visit dependant)

If so, do Applications expire? I assume the more I create, the more resources on the server get hogged. Is this the method by which they tell how many users are online?

Replies

Replied 23 Jun 2002 22:10:43
23 Jun 2002 22:10:43 David Hayes replied:
This website may help check it out:
www.w3schools.com/asp/asp_applications.asp

flquid

Reply to this topic