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

What are session objects?

510


If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?

547


Elaborate differentiation between ViewState and SessionState?

610


What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC

496


What is __ requestverificationtoken?

551






What is Dynamic Web and discuss its usage with the help of real life examples?

596


What is base class of .net?

537


How do we access view state value of this page in the next page?

648


How can you send an email message from an asp.net web page?

523


What is the difference between server-side scripting and client-side scripting?

548


What is the displayafter property in updateprogress control?

509


What are type/key pairs in client script registration?

559


Where session variables are stored?

541


State differences between MVC and WebAPI

602


Do gac'ed assemblies have fulltrust?

641