COOKIES Gloria Soria Network Security COSC 356. What is a Cookie? A cookie is a piece of text that a Web Server can store on a user's hard disk. Cookies.

Slides:



Advertisements
Similar presentations
Cookies, Sessions. Server Side Includes You can insert the content of one file into another file before the server executes it, with the require() function.
Advertisements

Unit 11 Using the Internet & Browsing the Web.  Define the Internet and the Web  Set up & troubleshoot an Internet connection  Categorize webs sites.
Social Media Remarketing Making the Most of Your Traffic.
Unit 12 Using the Internet & Browsing the Web.  Understand the difference between the Internet and the World Wide Web  Identify items on a web page.
CC3.12 Lecture 12 Erdal KOSE Based of Prof. Ziegler Lectures.
6/10/2015Cookies1 What are Cookies? 6/10/2015Cookies2 How did they do that?
Web Security A how to guide on Keeping your Website Safe. By: Robert Black.
Servlets and a little bit of Web Services Russell Beale.
17 April Using Technology. Where Can You Use Technology? Product Sales Marketing Operations Finances Salaries Inventory Logistics Analysis Market Customer.
Internet Cookies: Changing Internet Use and Privacy Lindsay Maidment & Katherine Hollander November 8, 2006.
XP Tutorial 9 New Perspectives on JavaScript, Comprehensive1 Working with Cookies Managing Data in a Web Site Using JavaScript Cookies.
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
11 CONFIGURE INTERNET EXPLORER Chapter 5. Chapter 5: Configure Internet Explorer2 CHAPTER OVERVIEW AND OBJECTIVES  Configuring Accessibility and Language.
Lesson 46: Using Information From the Web copy and paste information from a Web site print a Web page download information from a Web site customize Web.
 A cookie is a piece of text that a Web server can store on a user's hard disk.  Cookie data is simply name-value pairs stored on your hard disk by.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 48 How Internet Sites Can Invade Your Privacy.
Chapter 16 The World Wide Web. 2 Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic HTML.
Data Security.
Chapter 16 The World Wide Web Chapter Goals ( ) Compare and contrast the Internet and the World Wide Web Describe general Web processing.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
IT533 Lectures Session Management in ASP.NET. Session Tracking 2 Personalization Personalization makes it possible for e-businesses to communicate effectively.
Adapted from Computer Concepts, New Perspectives, Thompson Course Technology EDW 647: The Internet Dr. Roger Webster & Dr. Nazli Mollah 24 Cookies: What.
JavaScript, Fourth Edition
Working with Cookies Managing Data in a Web Site Using JavaScript Cookies* *Check and comply with the current legislation regarding handling cookies.
CSE 154 LECTURE 12: COOKIES. Including files: include include("filename"); PHP include("header.html"); include("shared-code.php"); PHP inserts the entire.
Chapter 16 The World Wide Web. 2 The Web is an infrastructure of distributed information combined with software that uses networks as a vehicle to exchange.
Chapter 8 Safeguarding the Internet. Firewalls Firewalls: hardware & software that are built using routers, servers and other software A point between.
Chapter 8 Cookies And Security JavaScript, Third Edition.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic.
COOKIES. INTERNET COOKIES What are they Where are they found What should you do about them.
PHP1-1 PHP Lecture 2 Xingquan (Hill) Zhu
Lecture 8 – Cookies & Sessions SFDV3011 – Advanced Web Development 1.
Cookies Web Browser and Server use HTTP protocol to communicate and HTTP is a stateless protocol. But for a commercial website it is required to maintain.
11 1 Cookies CGI/Perl Programming By Diane Zak Objectives In this chapter, you will: Learn the difference between temporary and persistent cookies.
Chapter 9 Building the Shopping cart Objective Creating Shopping cart using session Variable. Creating a shopping cart using a database table. Use the.
Web Database Programming Week 7 Session Management & Authentication.
The Web Wizard’s Guide To JavaScript Chapter 7 Cookies: Maintaining State.
ASP.Net, Web Forms and Web Controls 1 Outline Session Tracking Cookies Session Tracking with HttpSessionState.
CP476 Internet Computing CGI1 Cookie –Cookie is a mechanism for a web server recall info of accessing of a client browser –A cookie is an object sent by.
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
CHAPTER 7 THE INTERNET AND INTRANETS 1/11. What is the Internet? 2/11 Large computer network ARPANET (Dept of Defense) It is international and growing.
History Internet – the network of computer networks that provides the framework for the World Wide Web. The web can’t exist without the internet. Browser.
ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7
Chapter 12: How Private are Web Interactions?. Why we care? How much of your personal info was released to the Internet each time you view a Web page?
Cookies By: Kendra Alvarez. Concepts of Cookies Cookies are pieces of information generated by a Web server and stored in the user's computer, ready for.
Web Browsing *TAKE NOTES*. Millions of people browse the Web every day for research, shopping, job duties and entertainment. Installing a web browser.
DATA ACCURACY- one of the issues of computer ethics. Providing inaccurate data input results in erroneous information & decision making. Information on.
ITM © Port,Kazman 1 ITM 352 Cookies. ITM © Port,Kazman 2 Problem… r How do you identify a particular user when they visit your site (or any.
Computer-made Cookies Presented by Helal Lutfi. What is a Computer Cookie?  A small text file which contains a unique ID tag.  Placed on your computer.
Unit-6 Handling Sessions and Cookies. Concept of Session Session values are store in server side not in user’s machine. A session is available as long.
Distributed Web Systems Cookies and Session Tracking Lecturer Department University.
11 SUPPORTING INTERNET EXPLORER IN WINDOWS XP Chapter 11.
Windows Vista Configuration MCTS : Internet Explorer 7.0.
Some from Chapter 11.9 – “Web” 4 th edition and SY306 Web and Databases for Cyber Operations Cookies and.
CSE 154 Lecture 20: Cookies.
Unit 12 Using the Internet & Browsing the Web
COOKIES.
Latest Updates on BlackHawk Mines Music : Privacy Policy
Sara Truog LI843XR, Fall 2009 Emporia State University
What is Cookie? Cookie is small information stored in text file on user’s hard drive by web server. This information is later used by web browser to retrieve.
Web Privacy Chapter 6 – pp 125 – /12/9 Y K Choi.
09/10 Summary.
Chapter 16 The World Wide Web.
CSc 337 Lecture 27: Cookies.
The Dark Side of the Internet
CSc 337 Lecture 25: Cookies.
Presentation transcript:

COOKIES Gloria Soria Network Security COSC 356

What is a Cookie? A cookie is a piece of text that a Web Server can store on a user's hard disk. Cookies allow a Web site to store information on a user's machine and later retrieve it. The pieces of information are stored as name-value pairs.

Where do I find Cookies? If you use Microsoft's Internet Explorer to browse the Web, you can see all of the cookies that are stored on your machine

Example: Cookies on my Computer I can find all the cookies in the following directory: c:\Documents and Settings\Gloria\Cookies I find 277 files

Cookies Basics Each file is a text file  that contains name-value pairs, A name-value pair is a named piece of data. It is not a program, and it cannot "do" anything. A Web site can retrieve only the information that it has placed on your machine.  there is one file for each Web site that has placed cookies on the machine.

Example: Footlocker.com You can see which Web site placed the file on your machine by looking at the file name.

Example: Footlocker.com This information is also stored inside the file.

Cookie Basics The majority of sites store  just one piece of information -- a user ID -- on your machine.  But a site can store many name-value pairs if it wants to. Most sites seem to store user preferences in the site's database and store nothing but an ID as a cookie.

How Does Cookie Data Move? Data moves in the following manner: 1. If you type the URL of a Web site into your browser, your browser sends a request to the Web site for the page. Browser contacts the server and requests its homepage

How Does Cookie Data Move? 2.When the browser does this, it will look on your machine for a cookie file that the Web site has set.  If it finds an Amazon cookie file, your browser will send all of the name-value pairs in the file to Amazon's server along with the URL.  If it finds no cookie file, it will send no cookie data. 3.The web server receives the cookie data and the request for a page.  If name-value pairs are received, Amazon can use them.

How Does Cookie Data Move? 4.If no name-value pairs are received, the web server knows that you have not visited it before. The server creates a new ID for you in the server’s database and then sends name-value pairs to your machine in the header for the web page it sends.

How Do Web Sites Use Cookies? a cookie allows a site to store state information on your machine You have control over this process. You can set an option in your browser so that the browser informs you every time a site sends name-value pairs to you. You can then accept or deny the values.

What are cookies used for? Web sites use cookies in many different ways. Here are some of the most common examples: Sites can determine how many people actually visit the site.  How many visitors arrive  How many are new vs. repeat visitors  How often a visitor has visited

How many people are using the site? The way the site does this is by using a database. The first time a visitor arrives, the site creates a new ID in the database and sends the ID as a cookie. Site Returns new ID as a cookie Visitor requests homepage If it’s visitor’s first visit, create ID

How many people are using the site? The next time the user comes back, the site can increment a counter associated with that ID in the database and know how many times that visitor returns. If it’s not visitors first visit: counter ++ Request URL + cookie

Example of statistics Simple example of what cookies and a database can do. You can keep a history and a statistics system for an article.

History of my activity on HowStuffWorks Number of Page Views:10 Number of 'Visits':2 Total Time at Howstuffworks:18.20 mins. Avg. Pages Viewed per Visit:5 Avg. Time per Visit:9.10 mins. Avg. Time per Page Viewed:1.82 mins. History DisplaySUMMARY STATISTICSHistory DisplaySUMMARY STATISTICS History Display SUMMARY STATISTICS

Customization Sites can store user preferences so that the site can look different for each visitor. This is often referred to as customization. Example. I can go into weather.com and display the temperature in celcius degrees, instead of farenheit.

E-commerce sites  E-commerce sites can implement things like shopping carts.  The cookie contains an ID and lets the site keep track of you as you add different things to your cart.  Each item you add to your shopping cart is stored in the site's database along with your ID value.  When you check out, the site knows what is in your cart by retrieving all of your selections from the database.

Cookies And System Security Cookies do not act maliciously on computer systems. They are merely text files that can be deleted at any time - they are not plug ins nor are they programs. Cookies cannot be used to spread viruses and they cannot access your hard drive

Cookies And System Security however, any personal information that you give to a Web site, including credit card information, will most likely be stored in a cookie. In only this way are cookies a threat to privacy. The cookie will only contain information that you freely provide to a Web site.

Cookies And Privacy Each access your browser makes to a Web site leaves some information about you behind, creating a trail across the Internet

Example: The DoubleClick Network Is a system used to create profiles of individuals tastes and interests using the World Wide Web, to present them with advertising banners customized to their interests. DoubleClick's primary customers are Web sites looking to advertise their services.

SOURCES Textbook. Security and guide to network security. Cisco learning institute.