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
How can we prevent browser from caching an aspx page?
What is the use of session state and application state and difference between them?
Explain the difference between response.redirect vs server.transfer
What is globalization and localization in asp net?
What are the Difference between asp.net and asp ?
Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?
What is the use of session?
Can you explain the basic use of dataview?
Define authentication and authorization.
What is _viewstart?
Which method is used to perform all validation at the page level?
How can you register a custom server control to a web page?
How does the iis work?
Differences between “dataset” and “datareader”.
What is a viewbag?