A brief difference between Session and Cookies in asp.net

Answer Posted / johny shaik

cookie
cookie is client side state management technique and it is a "small information which is stored on the browser in plain text format" cookie is created on the server and stored on the browser.

session
session is server side state management technique and "is used to maintain the state of the response on the server upto particular time period" and default time out o session is 20 minutes. session is created on the server and session id is stored on the browser in form of cookie...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain different types of Caching techniques in ASP.NET?

550


What is session object? Describe in detail.

560


What is web router?

503


Can you explain how ASP.NET application life cycle and page life cycle events fire?

566


Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net

1502






Can we set master page as a start page?

542


How to unit test Web API?

708


What is difference between or and orelse?

547


what is DLL Hell and how it is solved in .NET? please explain clearly??

1885


What are the different web pages?

493


Explain security types in asp.net?

541


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.

1442


Name the namespace which is used by ado.net?

527


What is http only cookie?

499


Fetch one page value to another page without using state-managment ?

530