Session 

 

 

                 Cookies

A temporary and interactive information interchange between two or more communicating devices or between a user and computer Small pieces of data sent from a website and stored on the user’s computer by the user’s web browser while the user is browsing
 

Stored in the server side

 

Stored in the client’s browser as text files

 

It can store a large amount of data

 

It can store a minimum amount of data

 

It provides more security because it is difficult to access session values

 

It provides minimum security because it is easier to access cookie values

 

It holds multiple variables

 

It does not hold multiple variables

 

It is available until the browser is opened

 

It keeps the information until deleted by the user or set as per the timer

 

More reliable

 

Comparatively less reliable

 

Using session_destroy (), we will destroy sessions

 

Setting the cookie time to expire the cookie

 

Session depends on the cookie

 

Cookies does not depends on the cookie

 

Categorized in: