Tuesday, September 29, 2009

server side variable in asp.net

Application

Application object which is used to help maintain state where as the session object is designed to maintain state in a user by user basis the application object is designed to maintain state globally across entire website. Each variable store in the application is reffered as application variable. Application variable are also shown as global variable because from any asp page . every single user to your website has across to the exact same set of application variable.

Session

Session object can store any designed of data type . the session is used to maintain state only for the duration of a user insert to your website when each new user come to your site memory of the server is allocated to store the session object for that user . this memory is realease if the user exit your website for certain time of time . this by period of