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
Do you know using sql cache invalidation?
Define data caching?
For which does this Codebehind="MyCode.aspx.cs" is relevent to ?
What is sql data source control in asp.net?
In order to get assembly info which namespace we should import?
Is web config mandatory?
Describe the sequence of action takes place on the server when ASP.NET application starts first time?
Why we are using mvc instead of asp.net? : Asp.Net MVC
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.
How do I upload a file from my ASP.NET page?
What is the parent class of all web server control?
What is the concept of postback in asp.net?
Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?
Define machine.config in .net?
How to improve performance of web application asp.net mvc? : Asp.Net MVC