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
What are session objects?
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?
Elaborate differentiation between ViewState and SessionState?
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
What is __ requestverificationtoken?
What is Dynamic Web and discuss its usage with the help of real life examples?
What is base class of .net?
How do we access view state value of this page in the next page?
How can you send an email message from an asp.net web page?
What is the difference between server-side scripting and client-side scripting?
What is the displayafter property in updateprogress control?
What are type/key pairs in client script registration?
Where session variables are stored?
State differences between MVC and WebAPI
Do gac'ed assemblies have fulltrust?