Welcome back to our a lecture in this lecture.
We will discuss about cookies.
So before going to see cookies let this about a study yesterday is called as stateless protocol because
each command is executed independently without any knowledge of commands that came before it.
This is the main reason that is difficult to implement websites that direct intelligently to user input.
Yesterday we protocol is a stateless protocol which means you can open any website again and again it
will be treated as a new user.
So you will be treated as a new user each by so we have to give our information again and again when
we open any web page of that website because we are treated as a new user.
That's why SGP protocol is called as stateless protocol because we have to give out information every
time we open any web page is it bit boring.
Right.
For that reason we use two things cookies and sessions.
So with the help of cookies and sessions we not have to give our information again and again when we
open a particular website.
So cookies are as modifiers which contains information of user like passwords user name and etc..
Cookies contain information in at text read.
It's hardly of four maybe in a size cookie is not an executive Well file and it's stored in on a landslide
by a browser into a system in to use the system.
And sometimes the cookies are as a store for storing the user preferences.
So cookies also contain some logging information authentication information some authentication information
and even since your 90s left discuss about important fields of cookies all you may say properties of
cookies here here you can see that there are five important properties in cookies.
Fast food is domain so domain filters with domain has this cookie the pot field will tell about which
particular part of this cookie is set up the unsecured if the cookie is being sent through a secured
medium by using esoteric protocol then this field will be present inside of a cookie and then there
is an expired field which tells when this cookie will expire.
You can see that it's GDP only so the study only feel the present inside the cookie which means that
cookie cannot be stolen by using Jasper.
So this was all about cookies.
Now let's do an example with cookies.
Here I am using simple cookies creating BHP script save it as cookie that BHP
now lets up on this file in the browser
here you can see that cookie is created in the browser.
Let me show you that in which place our browser stores cookie.
So just go to the settings preferences and then privacy.
And here you will see the option to remote individual cookie.
You can see the cookies of different Web site.
Let us remove all the cookies
and refresh the local host.
I hit enter.
You can see in the response.
Cookies inserted.
Now let's verify.
Click or here.
Remove individual cookies.
And here you can see our cookie localized 127 not zero or zero dark one in this cookie.
The name of the cookies it's value.
See the host here and part also.
OK.
That's all about cookies.
Thanks for watching and see you in the next lecture.