What is the difference between cookies and session?

Answer Posted / m.chenna krisha reddy

cookie:
1.cookie store client side
2.cookies can store only string type
3.cookies is non secure since stored text format at client side
4.there is limited size
session:
1.session store server side
2.session store any type of data because the value is of datatype of object
3.there is no limitation size
4.session is secure because it is stored in binary format

Is This Answer Correct ?    62 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the Configuration files in .net?

511


Explain how can you clean up objects holding resources from within the code?

470


What is cli in c#?

494


What is boxing and unboxing in c#?

468


If casting fails what type of exception is thrown?

476






What is class in oops with example in c#?

500


Can constructor have return type c#?

634


What is difference between ienumerable and list in c#?

443


What is the usage of transponders?

539


In the page load event I assigned dropdownlist’s datasource property to a valid list. On the submit button click.. The same datasource property is coming as null. Why?

456


What are satellite assemblies? How will you get the different language strings?

481


What is Wrapper class in dot net?

626


What is the keyword used to prevent a class from being inherited by another class?

663


How to use delegates with events?

546


Why do we use reflection in c#?

484