Application and Session

  • Thread starter Thread starter Kiran
  • Start date Start date
K

Kiran

Hi,

Can someone tell me how Application and Session are related

And the difference between Application and Session.

Thanks
Kiran
 
Kiran said:
Hi,

Can someone tell me how Application and Session are related

And the difference between Application and Session.

Thanks
Kiran

relation: both are made available by the asp.net environment

difference: there is just one Application object for the entire
application, so anything you store there is visible for all users.
For each browser-instance accessing the site there is one
Session object. Anything you store in there is available *only*
for this specific "user".
Access to a specific Session object is controlled usually through
a temporary cookie, but it can be changed to use a changed URL
instead.


Hans Kesting
 
Thanks a lot
Kiran
Hans Kesting said:
relation: both are made available by the asp.net environment

difference: there is just one Application object for the entire
application, so anything you store there is visible for all users.
For each browser-instance accessing the site there is one
Session object. Anything you store in there is available *only*
for this specific "user".
Access to a specific Session object is controlled usually through
a temporary cookie, but it can be changed to use a changed URL
instead.


Hans Kesting
 
Back
Top