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
How can you handle errors in Web API?
Can we set master page as a start page?
What is the concepts of globalization and localization in .net?
Define repository pattern in asp.net mvc? : asp.net mvc
How can you use a custom controls in ASP.NET application?
What is the difference between pathparam and queryparam?
What is difference between session and application in asp net?
How can you ensure a permanent cookie?
Define the types of configuration files.
a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.
What symbol would you use to denote, the start of a code block in aspx views?
How can we create pie chart in asp.net?
What are the uses of reflection?
What is asp.net caching?
Can you dynamically assign a Master Page?