The Different Between Session With Cookie

Session

    1. Session can store any type of data because the value is of data type of “object”
    1. These are stored at server side.
    1. Sessions are secured because it is stored in binary format/encrypted form and gets decrypted at server.
    1. Session is independent for every client i.e. individual for every client.
    1. There is no limitation on the size or number of sessions to be used in an application.
    1. We cannot disable the sessions. Sessions can be used without cookies also.
    1. The disadvantage of session is that it is a burden or an overhead on server.
    1. Sessions are called as Non-Persistent cookies because its life time can be set manually

Cookies

    1. Cookies can store only “string” datatype.
    1. They are stored at client side.
    1. Cookie is non-secure since stored in text-format at client side.
    1. Cookies may or may not be individual for every client.
    1. Size of cookie is limited to 40 and number of cookies to be used is restricted to 20.
    1. Cookies can be disabled.
    1. Since the value is in string format there is no security.
    1. We have persistent and non-persistent cookies.

Man Top
Docker Stats
comments powered by Disqus