Register to Better Coder! It's free.
Enjoy the premium features and succeed at every job interview.

What are cookies and how are they used in HTTP protocol?

Experience Level: Junior
Tags: HTTP protocolQuality Assurance (QA)

Answer

  • Cookies are small text blocks that are being sent in a HTTP requests to the web server and in a HTTP response from the web server.
  • Each cookie consists of key-value pair, list of all cookies is represented by the HTTP header.
  • Cookie is usually created on the server (by the on-line application back-end)
  • Cookie can be created on the client-side (by the browser)
  • Cookies are persisted in the browser
  • All cookies can be seen in Chrome DevTools

 

Cookie example

Cookie: _ga=GA1.2.329801189.1515987465; ai_user=Xabc|2018-02-11T23:24:12.252Z;

Related Quality Assurance (QA) job interview questions

Comments

No Comments Yet.
Be the first to tell us what you think.
HTTP protocol for beginners
HTTP protocol for beginners

Are you learning Quality Assurance (QA) ? Try our test we designed to help you progress faster.

Test yourself

Chat

Oh, the operator is not available. Leave us your comments. We will answer all your questions as soon as possible.

Comments

LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e