1 00:00:00,520 --> 00:00:03,600 Speaker 1: Welcome to brain Stuff from how Stuff Works dot com 2 00:00:03,600 --> 00:00:15,000 Speaker 1: where smart Happens. Hi, I'm Marshall Brain with today's question, 3 00:00:15,480 --> 00:00:20,000 Speaker 1: what is an Internet cookie? Cookies have for some reason 4 00:00:20,160 --> 00:00:24,720 Speaker 1: gained a rather sinister image, but they're really simple and harmless. 5 00:00:25,040 --> 00:00:28,520 Speaker 1: A cookie is just information stored as text strings on 6 00:00:28,640 --> 00:00:32,640 Speaker 1: your machine by a web server. A web server sends 7 00:00:32,680 --> 00:00:35,159 Speaker 1: you a cookie, and the browser stores it on the 8 00:00:35,200 --> 00:00:38,800 Speaker 1: hard disk. The browser then returns the cookie to the 9 00:00:38,840 --> 00:00:42,360 Speaker 1: server the next time the page is referenced. The most 10 00:00:42,400 --> 00:00:45,360 Speaker 1: common use of a cookie is to store a user 11 00:00:45,400 --> 00:00:48,800 Speaker 1: I D. For example, a cookie might contain the following 12 00:00:48,880 --> 00:00:54,040 Speaker 1: string I D equals nine six three five. Amazon dot 13 00:00:54,080 --> 00:00:57,400 Speaker 1: com is one site that uses this technique. When you 14 00:00:57,520 --> 00:00:59,680 Speaker 1: order a book, you fill out a form with your 15 00:00:59,760 --> 00:01:03,720 Speaker 1: name address. Amazon assigns you an i D in its database, 16 00:01:04,200 --> 00:01:07,399 Speaker 1: stores your information with that i D on its server, 17 00:01:08,080 --> 00:01:11,280 Speaker 1: and sends the i D to your browser as a cookie. 18 00:01:11,680 --> 00:01:14,560 Speaker 1: Your browser stores the i D on your hard disk. 19 00:01:14,800 --> 00:01:17,480 Speaker 1: The next time you go to Amazon, the idea is 20 00:01:17,560 --> 00:01:20,679 Speaker 1: sent back to the server. The server looks you up 21 00:01:20,760 --> 00:01:23,520 Speaker 1: by your I D and customizes the web page that 22 00:01:23,600 --> 00:01:26,319 Speaker 1: sends back to you. In essence, it knows who you 23 00:01:26,360 --> 00:01:29,880 Speaker 1: are so it can say welcome back, Joe Smith. You 24 00:01:29,959 --> 00:01:34,120 Speaker 1: might be wondering, is there any more to cookies than that. No, 25 00:01:34,720 --> 00:01:37,920 Speaker 1: they are simply text strings stored on the hard disk. 26 00:01:38,280 --> 00:01:40,880 Speaker 1: They are little text files. You can open them up 27 00:01:40,920 --> 00:01:44,200 Speaker 1: and see the strings that are being saved. There's nothing magic, 28 00:01:44,600 --> 00:01:49,320 Speaker 1: there's nothing complicated about it. Our cookies harmful? No, They're 29 00:01:49,400 --> 00:01:52,480 Speaker 1: just short text strings, and they can often make browsing 30 00:01:52,560 --> 00:01:56,800 Speaker 1: better by allowing a server to recall any customized information 31 00:01:56,880 --> 00:02:01,200 Speaker 1: you've set our cookies comment. Yes, the typical machine has 32 00:02:01,600 --> 00:02:05,160 Speaker 1: hundreds of separate cookies on the hard disk. Can cookies 33 00:02:05,200 --> 00:02:10,320 Speaker 1: transmit computer viruses? No, they're just text strings. Can accompany 34 00:02:10,480 --> 00:02:14,440 Speaker 1: read your personal information from your hard disc with a cookie? No? 35 00:02:15,000 --> 00:02:17,920 Speaker 1: Only the cookie that is sent in the first place 36 00:02:18,000 --> 00:02:21,360 Speaker 1: is returned to the server. It's not modified or manipulated 37 00:02:21,400 --> 00:02:25,600 Speaker 1: in any way. Be sure to check out our new 38 00:02:25,680 --> 00:02:29,040 Speaker 1: video podcast, Stuff from the Future. Join How Stuff Work 39 00:02:29,120 --> 00:02:32,639 Speaker 1: staff as we explore the most promising and perplexing possibilities 40 00:02:32,680 --> 00:02:36,840 Speaker 1: of tomorrow. The How Stuff Works iPhone app has arrived. 41 00:02:36,919 --> 00:02:38,880 Speaker 1: Download it today on iTunes.