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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 23, 2013, 10:38 PM EST
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
Jignesh TrivediRank #16 · 50.3K reputationPosted Jan 23, 2013, 11:05 PM EST
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.
Rishikesh Kumar SinghRank #1,250 · 1.4K reputationPosted Jan 23, 2013, 11:13 PM EST
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.