Wednesday 19 August 2015

What is difference between Cookie and Session in Asp.Net

The differences between Cookie and Session.

Cookie : 

       1. Cookie is client side state management.

       2. Cookie support only plain text representation.

       3. Cookie is having limitations in terms of number and size.

       4. Cookie doesn't provide security.

       5.  Cookies will reduce burden on server compare to session.

       6. No time out for cookie


 Session : 

       1. Session is server side state management.

       2. Session support representing object.

       3. Session doesn't have limitations for number and size.

       4. Session provides security.

       5.Session time out is 20 mins

     

No comments:

Post a Comment