Difference between application and session ?
Answer Posted / sumitpalsingh
Session object is used to store state specific information per client basis. It is specific to particular user.
Application object is used to store data which available across the entire application and shared across multiple users sessions.
Session has the expiration time,default time 20 mints.But application object doesn't have the expiration time.
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 for any user.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the different types of validation controls provided in ASP.NET?
What are the built-in objects in asp.net?
How to find out what version of asp.net I am using on my machine?
How can we register exception filter from the action?
What is ashx file in asp.net?
Explain cookies with example.
Explain the advantages of passport authentication.
What is the question mark in a url?
Explain parts of assembly?
What are the various types of validation controls provided by asp.net?
What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?
What is application state?
Explain what is an assembly?
Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)
If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?