A brief difference between Session and Cookies in asp.net

Answer Posted / uday kumar vuriti

We use both Session and Cookies to maintain state between
the page postbacks. We can achieve state management using 2
ways.

1. Client Side Technique (using hidden fields, query string,
view state and Cookies)

2. Server Side Technique (using Session and Application)

Cookies will store data in client side either in browser or
in system hard disk.

Session will allocates memory in the web server and for
every user server will allocates memory. So Session is per
user based.

Is This Answer Correct ?    63 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How use Xml data in ASP.net?

567


What is http request and response?

540


Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?

535


How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.

1431


When maintaining session through sql server, what is the impact of read and write operation on session objects?

540






Describe the master page.

558


Can action method static?

537


What is the difference between “Web.config” and “Machine.Config”?

703


What is session in http request?

560


what are the Custom controls in asp.net?

574


Describe the Server Control Events of ASP.NET?

663


Why do we use web config?

526


How to make paging concepts in datagrid in ASP.NET?

559


Which of the following .NET framework supports Web API?

645


How can we call webservices in Banking Applications? and where we are using it?

1538