Home > Software > .NET > C-Sharp
Interview Questions   Tutorials   Discussions   

C-Sharp - What is the difference between cookies and session?




256
views
asked mar October 4, 2014 04:38 AM  

What is the difference between cookies and session?


           

1 Answers



 
answered By siddhant   0  

Sessions

Sessions are stored per-user in memory(or an alternative Session-State) on the server. Sessions use a cookie(session key) to tie the user to the session. This means no "sensitive" data is stored in the cookie on the users machine.

Cookies

Cookies are stored per-user on the users machine. A cookie is usually just a bit of information. Cookies are usually used for simple user settings colours preferences ect. No sensitive information should ever be stored in a cookie.

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert