Home » How Internet Browser Cookies Work

How Internet Browser Cookies Work

An HTTP cookie (also called web browser cookies, Internet cookie, browser cookies or simply cookie) is a small piece of data sent from a website and stored in the user’s web browser while the user is browsing.

Purpose of browser cookies

  1. Record users activity such as browsing history, click patterns, page visits and so on.
  2. keep track of items in the shopping cart.
  3. enable automatic user login by eliminating the use of password input if you have saved password on that site.

Types of Browser Cookies

1. session cookie

A session browser cookie, also known as an in-memory cookie or transient cookie, exists only in temporary memory while the user navigates the website.Web browsers normally delete session cookies when the user closes the browser. session cookies do not have an expiration date assigned to them.

2. persistent cookie

A persistent browser cookie facilitates websites to track user settings and information when they visit the same website in the future. persistent cookies are sometimes referred to as tracking cookies because they can be used by advertisers to record information about a user’s web browsing habits over an extended period of time.

3. secure cookie

It can only be transmitted over an encrypted connection (i.e HTTPS) and thus offer protection against cookie theft.

4. super cookie

it is a cookie with an origin of a top-level domain (such as .com) or a public suffix like (co.uk). Supercookies can be a potential security concern and are therefore often blocked by web browsers.

5. Third-Party Cookie

it belongs to a domain different from the one shown in the address bar. as an example when you visit a website (www.pqr.com) all the cookies that come from this website are called firstparty cookies. Suppose, if this website (www.pqr.com) is running an advertisement on its page from a third party website (www.cvb.com) then the cookie that originates from this website (www.cvb.com)  is referred to as a third-party cookie.

Structure of a Cookie

A cookie consists of the following components

  1. Name
  2. Value
  3. Zero or more attributes
  4. domain associated with the cookie
  5. expiry information

Drawbacks of Cookies

1. Inaccurate identification

If more than one browser is used on a computer, each usually has a separate storage area for cookies. Hence cookies do not identify a person, but a combination of a user account, a computer, and a web browser. Thus, anyone who uses multiple accounts, computers, or browsers has multiple sets of cookies.Likewise, cookies do not differentiate between multiple users who share the same user account, computer, and browser.

2. Accidental Deletion

In many cases, cookies can get erased accidentally when you clear your browsing history or use a third party cookie cleaner program. When this happens all your stored settings and preference gets lost and the website treats you as a completely new user.

Cookie theft

cookies can be also used to steal the data.  cookie theft and session hijacking, Most websites use cookies as the only identifiers for user sessions, because other methods of identifying web users have limitations and vulnerabilities. If a website uses cookies as session identifiers, attackers can impersonate users’ requests by stealing a full set of victims’ cookies. From the web server’s point of view, a request from an attacker then has the same authentication as the victim’s requests; thus the request is performed on behalf of the victim’s session.


For any help, you can Contact Us or leave a message on the Facebook page.


  • “I know this if off topic but I’m looking into starting my own blog and was curious what all is required to get set up? I’m assuming having a blog like yours would cost a pretty penny? I’m not very internet savvy so I’m not 100% certain. Any recommendations or advice would be greatly appreciated. Many thanks”

  • It is in reason for fact a great and useful bit
    of information. I’m happy that you shared this helpful information with us.
    Please keep us current such as this. Thanks a lot for sharing.

  • Thank you for every other magnificent post.
    The place else may just anyone get that type of information in such an ideal approach of writing?
    I have a presentation next week, and I’m at the look for such info.

  • Good day! This is kind of off topic but I need some advice from an established blog.
    Is it very hard to set up your own blog? I’m
    not very techincal but I can figure things out pretty quick.
    I’m thinking about creating my own but I’m not sure where
    to begin. Do you have any tips or suggestions? Cheers

  • I really like the valuable info you provide within your articles.
    I will bookmark your weblog and look again here frequently.
    I’m quite sure I’ll learn plenty of new stuff below!

    Better of luck for the next!

  • I’m now not certain where you’re getting the information, but good topic.
    I needs to spend a bit of time learning much more or figuring out
    more. Many thanks for wonderful info I used to be seeking
    this information for my mission.

  • It’s a pity you don’t have got a donate button! I’d certainly donate to this particular superb blog!
    I guess for the time being i’ll settle for bookmarking and adding your RSS feed to
    my Google account. I enjoy fresh updates and definately will focus on this website with my Facebook group.
    Talk soon!

  • Having check this out I believed it was actually rather enlightening.
    I appreciate you locating the time and effort to get this informative article together.
    One time i again find myself personally spending a lot of time both reading and leaving comments.
    But so what, it absolutely was still worth it!

  • Nice post. I was checking constantly this blog and I’m impressed!
    Extremely helpful info specifically the ultimate phase 🙂 I handle such
    info much. I was previously trying to find this certain info
    for any number of years. Thanks and best of luck.

  • Our company is a gaggle of volunteers and opening a new scheme in your
    community. Your site provided us with helpful info
    to be effective on. You’ve done an outstanding activity and our whole community could possibly be grateful to you personally.

  • We stumbled right here different website and thought I might as well check things out.
    I enjoy the things i see so now i am following you.
    Anticipate learning about your internet page repeatedly.

  • Nice post. I found myself checking constantly this website
    and I am just impressed! Extremely helpful info specially the very last part 🙂 I take care of such
    info much. I was seeking this particular info for the number of years.
    Thank you and better of luck.

  • I just like the valuable information you provide for your personal
    articles. I’ll bookmark your blog and look into again on this site frequently.
    I’m reasonably sure I’ll be told plenty of new stuff
    proper here! All the best for another!

  • Hi, i believe that i saw you visited my website thus
    i came to return the favor.I’m seeking to find what you should improve my
    website!I suppose its ok to use some of your opinions!!