C - A #3 N F2019105045 Y2: NN Ctivity Oorulain

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

CNN- ACTIVITY#3

NOORULAIN
F2019105045
Y2

Q1: Statement 1: Analyzing Cookies

1. Open Gmail.com
2. Inspect the Cookies in the HTTP Header

1- How to check cookies in your browser.


2. Find the number of cookies, Gmail server has sent to your browser.

3. What is the expiry date of your 1st cookie?

4. Now, delete the cookies, and tell what will happen to your Gmail page.
It’ll remove all information ( password , username) . we have to put them again in order
to sign in.

5. Go to settings, and disable all the third-party cookies, now tell the
difference, what happened when cookies were enabled and when cookies
were not enabled.
Now I have to put my information again eveytime I visit a page, I have to sign in again.
When cookies were enabled my all credentials were remembered.

6. Is there any session cookie on the list? Explore what are session cookies and
their expiry time.
No. session cookies do not have an expiration date assigned to them, which is how the
browser knows to treat them as session cookies. It depends entirely on our application.
When the session’s out the cookies will expire.

Statement 2: Analyzing Cookies

1. Open Yahoo.com
2. Inspect the Cookies in the HTTP Header

1- Open the first packet (yahoo.com) and check if there is any Set-cookie field
in the response header.

3. What are set-cookie and Cookie?


Set-Cookie HTTP reply header is used to send a cookie from the server to the user agent,
so the user agent can send it back to the server later. To send multiple cookies, multiple
Set-Cookie articles must be sent in the same reply. While a simple cookie is  a small
piece of data that a server sends to the user's web browser. The browser may store it and
send it back with later requests to the same server. 

You might also like