What are cookies?
Hello, everyone, in this picture.
We're going to talk about cookies and also in this section we are going to work with cookies and you
will see how we can create them music by them.
But I first wanted to clarify for you what cookies actually are.
So cookies are usually.
Created by a website and directed the files with very small amount of data, and this small amount of
data is always being transmitted between the sender, which is usually the user and the receiver, which
is the website.
So what you're really doing is they're storing your activity or they're pretty much writing the history
of your activity over a server or over any other service.
So then the service and also is your activity, which pages, for example, you visited when you were
browsing and knowing that information is provided to the server, some additional data in order to personalize
the services that you're seeing.
For example, if you are searching in the past for sports equipment, let's say if you are looking for
football equipment, then all the advertisements that you see online are going to be related to football
equipment because, for example, will go with it will have this cookie that is exchanged with you.
And in there it will be written that you search for football equipment.
So Google will know that you're a person interested in that.
And for that reason, you see the ads and why you see personalized ads.
You just because there was a cookies that are being exchanged between you and Google or another server
or website.
Also, if you are shopping in of the website, this is a way that you will always see your items in
the shopping cart, in the virtual shopping cart of the website.
And the items that you have are usually listed also in the cookies.
So they are usually two types of cookies, guys.
And the first type is the cookies which are opened and they're existing actually only while you're here
having the browser opened.
So once you close the browser Eurocurrency in the browser, then these cookies are demolished and they
are basically deleted.
The other type of cookies are the persistent cookies and they are staying for a longer time and this
time is predefined.
It could be three months, it could be a year and so on.
They or they could be staying there forever and to delete a browser or throw away your computer.
So the persistent cookies are actually the ones that are controlling the ads that you see and the search
results that you get.
Of course, cookies have some quite advanced security options.
So the data that is stored there, which is your data, is sort of vulnerable and it's not sent to any
other companies or users.
So that shouldn't have them.
For example, if you want to if your credit card information on your computer, then you definitely
don't want this to be accessed by anyone else except yourself.
So, for example, for some cookies, they can also store a local token.
And this is specifically a cookie that will remain in your computer or in your account forever.
And this is the way that in the recent years, Google is so good at saving your passwords for different
websites.
And simply by logging into your Google account, you have access to all your website logins simply because
they thought the cookies were bogus, specifically in your Google account, but not on your computer
personally.
So before you think that cookies are a bad thing, they are actually the only way for the server to
track the client and to give the information that the client actually needs.
This is because the HTP.
Protocol does not actually a mechanism that can say, if you want to, searchers are coming from the
same client or not.
So without server being able to uniquely identify what the customer wants, then it would be impossible
to shop online or having saved the password from our computer.
So these are cookies, guys.
I hope you understood them quite good, because in the next lecture, we're actually going to do some
coding with cookies on the web.
And so it will be quite exciting.
But that was it for today.
Thanks very much for watching and I'll see you in the next video.