Session and Cookies
What is the difference between session and cookies?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rishikesh Kumar SinghPosted Jan 24, 2013, 4:13 AM
1) Using session variable we can make available a data in whole application.We can save a data in session variable in any page and we can retrive it from any page under that application.
For example:-
Session["u_id"]=TextBox1.Text; //here value of textbox will be stored in the session variable.
For retriving we have to write:- string user=Session["u_id"].ToString().
Where as by making use of cookie we can send our data to a targeted page only and we can retrieve it from the target page only.
2). Session variable stores the data in the hidden field.
where as cookies store the data in the client machine.
Jignesh TrivediPosted Jan 24, 2013, 4:05 AM
Please refer below article.
http://onlydifferencefaqs.blogspot.in/2012/08/aspnet-difference-faqs-5.html
it is containing difference session ,cookies, View state.
hope this will help you.
Satyapriya NayakPosted Jan 24, 2013, 3:38 AM
http://www.netrostar.com/Cache-VS-Session-VS-Cookies
http://wiki.answers.com/Q/What_is_the_difference_between_session_and_cookies
http://www.allaboutcookies.org/cookies/cookies-the-same.html