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


Please Help Members By Posting Answers For Below Questions

How can you handle errors in Web API?

597


Can we set master page as a start page?

549


What is the concepts of globalization and localization in .net?

532


Define repository pattern in asp.net mvc? : asp.net mvc

505


How can you use a custom controls in ASP.NET application?

552






What is the difference between pathparam and queryparam?

581


What is difference between session and application in asp net?

495


How can you ensure a permanent cookie?

555


Define the types of configuration files.

536


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.

1446


What symbol would you use to denote, the start of a code block in aspx views?

574


How can we create pie chart in asp.net?

591


What are the uses of reflection?

580


What is asp.net caching?

580


Can you dynamically assign a Master Page?

590