What is difference between session and cookie?

Eddierot
Written by Eddierot

Posted On: Jan 09, 2019

 

    1 Answer Written

  •  Eddierot
    Posted by Anil Saini

    The Major difference between sessions and cookies are - 

    1.  Sessions are stored in Server Side while Cookies are sotred in Client Side.
    2.  Sessions are stored unlimited amount of Data while Cookies are Stored limited amount of Data.
    3.  Sessions are holding multiple variables while Cookies are not holding multiple varibles.
    4.  Sessions are more secure than Cookies.
    5.  Sessions values are not easily accessible While Cookies values are easily accessible.
    6.  Sessions can not disabled by visitor while cookies can disabled by the visitor.

Please Login or Register to leave a response.

Related Questions

PHP Interview Questions

What is mvc in PHP?

MVC stands for Model View Controller. It is an application design pattern for software development that separates the application data and business logic (model) from the presentation (view)....