Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How cookies work?

Tags:

cookies

I wanted to know the interactions of a browser (i.e. Firefox ) and a website.

When I submit my user name and password to the login form, what happens? I think that website sends me some cookies and authorizes me by checking those cookies.

Is there a standard structure for cookies?

Update:

Also, how I can see the cookies of specific URL sent to my browser if I want to use that cookie?

like image 647
Alireza Avatar asked Dec 28 '09 09:12

Alireza


People also ask

Should you accept cookies?

Most cookies are really not an issue. They are just used by the website owner so you have a better experience with the site. You can decline the “Accept Cookies” message and most websites will work just fine. Of course, any personalization will not be available to you.

How do cookies track you?

Cookies can track any kind of data about users, such as search and browser history, what websites they previously visited, what they googled earlier, their IP addresses, their on-site behavior such as scrolling speed, where they clicked and where their mouse hovered.

What exactly do cookies do?

Cookies are small files that websites send to your device that the sites then use to monitor you and remember certain information about you — like what's in your shopping cart on an e-commerce site, or your login information.


1 Answers

Understanding Cookies

Cookies are given to a browser by the server. The browser reveals the cookies as applicable only to the domain that provided the cookie in the first place.

The data in the cookie allows the server to continue a conversation, so to speak. Without the cookie, the server considers the browser a first-time visitor.

Have a look at these to know about browser cookies

Understanding Browser cookies

http://internet-security.suite101.com/article.cfm/understanding_computer_browser_cookies

http://www.willmaster.com/library/cookies/understanding-cookies.php

https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-22_11-6063884.html

like image 82
ACP Avatar answered Sep 29 '22 22:09

ACP