RE: State the difference between a Session and an Appl...
the session object is used to maintain the session of each user. If one user enter in to the application then they get seesion id if he leaves from the application then the session id is deleted.If they again enter in to the application they get different session id.
But for application object the id is maintained for whole application.it doesn't differ
RE: State the difference between a Session and an Appl...
sessions allows information to be stored in one page and accessed in another and it supports any type of object including your own custom data types.
Application state allows you to store global objects that can be accessed by any client.
The coomon thing b/w session and application is both support the same type of objects retain information on the server and uses the same dictionary -based syntax.
RE: State the difference between a Session and an Appl...
application state is a state where we hav the information that is global for the application where as session state is a state which is maintained as a per-client basis. whenever a user first accesses a page a session id is generated by asp.net. that session id is then transmitted between the client and the server via Http either with the help of client-side cookies or encoded in a mangled sessions of the urls. so the next time the users accesses state associated with that session id can be viewed or modified.
RE: State the difference between a Session and an Application
1) Application object is created when first request comes to the web server related the web application. Inside the application sessions will be created.
2) Application variables are global. you can access across the sessions. where as the session variables are related to particular session only.
RE: State the difference between a Session and an Application
Application state is global to the application regardless of the number of application instances. All instances share the same application state variables. Each instance has its own session variables. They are stored at the server end. One use of session is to store the user login status its privileges etc.