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
Explain how do you validate the controls in an asp .net page?
Why and where this web.config file is used?
What is distributed system in asp.net?
How do you open a page in a new window?
Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.
What are the Types of session management in ASP.NET
What is smpte vc-1?
What is dynamic web page with example?
Explain the role of global.asax?
Why do we need url encoding?
Can you explain the basic use of dataview?
Securitywise What are the Enhancements in 2.0?
calling result set one procedure to anothar procedure in sql2000
Explain the advantages of passport authentication.
Define the term Scavenging in Caching?