[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Cookie file format in Window XP

Posted on 2011-05-10
6
Medium Priority
?
1,355 Views
Last Modified: 2012-05-11
Dear Experts,
I would like to know the cookie file format. I have taken one example cookie file from my
PC C:\Ducument and Settings\Administrator\Local Settings\Temporary Internet Files\ and I put
it as follow code area and attached file.
Actually it is text file and I know the first line items that is cookie name, second line is cookie value
and third one is domain name from . What is stand for from line-4 to line 8? And it seems it use "*"
at line-9 to terminate one cookie entry and start next new one , Right ?  Please advise , Duncan
line-1   uid  
Line-2  4dc15532b1945880
Line-3  addthis.com/
Line-4  2147484752
Line-5  3646169600
Line-6  30297400
Line-7  3179010992
Line-8  30150348
Line-9     *
Line-10     psc
               16
               addthis.com/
               2147484752
               3646169600
               30297400
               3179010992
               30150348
               *


uid
4dc15532b1945880
addthis.com/
2147484752
3646169600
30297400
3179010992
30150348
*
psc
16
addthis.com/
2147484752
3646169600
30297400
3179010992
30150348
*
loc
HK%2CMDAwMDBBU0hLMDAyMDIyMjk0MTAwMDAwMDAwVg%3d%3d
addthis.com/
2147484672
3143214336
30167509
3793188416
30149404
*
dt
X
addthis.com/
2147484672
2129218816
30156379
3437630176
30150344
*
di
1304597170.1OD
addthis.com/
2147484672
2429214080
30296270
2998458976
30149419
*
bt
1304604902|00003I01000003J04000003Q014
addthis.com/
2147484672
2014465280
30297195
3437630176
30150344
*

Open in new window

administrator-addthis-2-.txt
0
Comment
Question by:duncanb7
  • 3
  • 2
6 Comments
 
LVL 9

Assisted Solution

by:iGottZ
iGottZ earned 668 total points
ID: 35735719
this would explain it:
http://weitips.blogspot.com/2006/04/cookie-file-format-of-internet.html
Cookie name
Cookie value
Host/path for the web server setting the cookie
Flags
Exirpation time (low)
Expiration time (high)
Creation time (low)
Creation time (high)
Record delimiter (*)
0
 
LVL 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 1332 total points
ID: 35736891
This article appears to be a pretty good introduction:
http://www.howstuffworks.com/cookie.htm

As always, the Wikipedia has a good and growing information set:
http://en.wikipedia.org/wiki/HTTP_cookie
0
 
LVL 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 1332 total points
ID: 35736987
The deep value of cookies comes from the data base backed nature of web sites.  Let me try to explain with some examples.  Let's say you set a cookie on a client machine and at some time in the future, the client comes back to your web site.  With each page load, you can keep track of the client's interests.  You can know whether the client is shopping for cookware or shoes, and what pages resulted in the most purchases at the highest profit margins.  All of this sort of incredibly valuable business intelligence is facilitated by the cookie.

But the cookie itself only tells the server its name and its value.  So how can all this information be available?  It's because other programming running on the server keeps the data base up-to-date.  The cookie is merely a key into one table of a relational data base; the cascade of valuable information is kept on the server.  The tip of the iceberg, if you will.

I've seen questions here at EE and in other forums that go something like, "Is it save to keep my user-id and password in a cookie?"  That's the wrong question.  The right question is, "How can I set cookies that tamper-resistant, so I can trust them when I use them for keys to my data base of client information?"

For the most part you can trust all the browsers to return cookies with the name and value you used when setting the cookie.  And as a result you can trust any tamper-resistant cookie to be an accurate key to your data base.  Most security-conscious programmers (like those of us who have to handle money or important information) will supplement the cookie with a request for password authentication before we make a change to the data model or before we expose sensitive data.

HTH, ~Ray
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 13

Author Comment

by:duncanb7
ID: 35739232
in the http proxy software, I didn't see
,Flags,Exirpation time (low),Expiration time (high),Creation time (low),Creation time (high)
Only see name, value, domain, Why ?
Who will need those ,Flags,Exirpation time (low),Expiration time (high),Creation time (low),Creation time (high),
information?
How those information is related to the following setcookies() in php ?
setcookie($cookie_name, $cookie_value, $cookie_expires, $cookie_path, $cookie_domain, $cookie_secure, $cookie_http)

Is $cookie_expires=t = 1e-7*(high*pow(2,32)+low) - 11644473600 in the article mentioned above for expire time ?
Where we can set the Flag and Creation time(High,low) in setcookie() ?
Is CURLOPT_COOKIE variable in curl_setopt setting for Flag and Creation time ?

Please advise

Ducan

0
 
LVL 13

Accepted Solution

by:
duncanb7 earned 0 total points
ID: 35739258
Final one what is Flag for , for security or others?
0
 
LVL 13

Author Closing Comment

by:duncanb7
ID: 37343777
SOrry late to reply this thread, finally, I get
more understand on cookie through
w3schools tutorial and pratices

Duncan
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month18 days, 13 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question