Sei sulla pagina 1di 1

What is Cookie ?

Cookie is a small program that the server embeds on the client computer for trac
ing the user activity on the web .
Cookies existence doesnot depends upon the Browser , it depends on the time prov
ided while creating the cookie .
The RealLife Example of Cookie is Remember Me.
Drawback of Cookies :
========================
1)Since it depends on the Client Computer,
so it is not the safest way to track user activity because user can delete all
the cookies or format the PC , then cookies would not work .
2)
Cookies can be read by thrid party software
saving
Password or sensitive data .

which is way too high risk for

Advantages :
1)It is used to trace the User Activity on web
2)If we set cookie in one Page , then it would available o the rest of the Pag
es .
It is alos a super global carrier of Data like Session .
Only the Major difference between session and cookie are
1)Storage Area :
Cookies is used to store user information
on the Client Computer
where as Session is used to store User Information on the Server .
2)Session is more secured compare to Cookie .
3)Session existence depends on the Browser
where as Cookies existence depens on the
time limit.

Potrebbero piacerti anche