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 web server controls in asp.net?
Where is the session stored?
Can we store object in viewstate?
What is the difference between cookie and session?
What is the difference between session.abandon() vs clear()?
How do u deploy your asp.net application?
What are the asp.net server side objects?
What is query string in asp.net?
What is session authentication?
Explain what is an abstract class?
Apart from IDE what are the enhancements in asp.net 2.0?
What is view state management in asp net?
What is synchronous and Asynchronous post back ?
How to display validation messages in one control?
What is _viewstart?