01-27-2003, 01:52 AM
If I have a windows login set up on my computer, say "xyz", then cookies placed on my drive all are named "xyz@" something or other... How do sites reference my windows defined identity when they go to write a cookie?
01-27-2003, 10:23 AM
If someone else logs on then the cookies will be different.
Websites have no control over that sort of thing.
01-27-2003, 11:54 PM
OK, thanks. But how do the cookies get named the way they do on my hard drive? If I write a cookie from a website, under what name can i expect to find it?
01-28-2003, 12:52 AM
Whatever you name the cookie when you create it, will be the name you see it on your harddrive. If you created a cookine named "username", you'd have email@example.com or something, in your cookies folder
01-28-2003, 02:19 AM
OK, thanks. Sorry if I am being dense, but this is exactly what is confusing me. I have two logon ids on my w98 system - let's call them user "abc" and user "xyz". So there is a cookie directory for each. If I go to the NY Times site under both of the respective logns, I will get a cookie firstname.lastname@example.org in the one subdirectory and email@example.com in the other cookies subdirectory. So isn't windows getting involved and adding the user piece on to the cookie? If I have no logon id, by the way, then the cookie gets written as firstname.lastname@example.org. Did the nytimes site just write it as nytimes1.txt and windows added the abc@ ?
02-01-2003, 06:10 AM
There are two names involved here, one is the cookie name (which is set by the web server) and the other is the file name that Windows stores the cookie data in. Windows is generating the file name "email@example.com", not the web server.
IE doesn't send the file or file name to the web server when you browse to the site. It just uses the file to store cookies.
Apparently, it uses different files for different combinations of users and domains. Makes sense if you want let one user have a different set of cookies for a given site from another user.
02-01-2003, 05:15 PM
Brainjar - Thanks. Since I posted I created some cookies and looked at this, and yes, it is just as you say. The cookie file Windows has named, and contained in it are the cookies I set from the server, using php. It looks like the file essentially contains all active cookies set form that site. I guess when I reference the cookie from the server in order to inspect a setting, Windows simply searches for the cookie file based on site url and the Windows naming convention, and then chains through the file contents.