• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is there a standard for cokie's format?

 
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and what is prohibiting application to use its own.
I looked for javascript's cookies. Apparently the cookies should contain a lot of ";" and "=". Ooops, when I look in cookies in my PC, I do not find a one! The strings are separated by unreadable/unprintable symbols.
Whether format of coockies depend on application, language used?or it is standardized?
What is prohibiting an application to use its own format? (except general sense)
If nothing then how to control/read what is being written?
[ November 26, 2002: Message edited by: G Vanin ]
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This page wishes to set the cookie
ACID="ee550010383295990001!"

This value will be sent to documents on all servers in the domain advertising.com, and paths that are starting in /.
The cookie is valid until Sun, 25 Nov 2007 16:53:19 GMT

This is a cookie that advertising.com wants to put on my computer. I don't see a lot of ';' or '=' in it.

Cookies are plain text, not javascript. Javascript can be used to set cookies. But the cookies are not stored in javascript, they are stored by javascript.
[ November 26, 2002: Message edited by: Marilyn de Queiroz ]
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The use of cookies is defined in RFC 2109, but this is a bit of a heavy read.
THe data in a cookie is stored as a name/value pair, and the way this data is represented is decided by the person who writes the cookie - ie the server.
Usually they are Base64 encoded, but they can also be encrypted if the data is sensetive.
Dave
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot, Dave.
Marilyn,
Well, I have read an aricle about Javascript's cookies writting and reading.
It was proposing to read (written before) values into array, parsing by ";" and even separate names from the values by parsing after "="
I may even get to sources (it was paper magazine) on Internet, but I do not think it is so important.
What is important, is that nobody cares about cookies as I understood. Why, for example, browsers do not enforce/check according to RFC?
 
Marilyn de Queiroz
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most browsers have options that you can set regarding cookies. For example, in Internet Explorer 5.5 your choices are "enable", "disable", or "prompt".
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Marylin,
there is also the possibilty to cut off by scissors a net cable.
What I asked was about validation/controlling/checking, not just enable/disable, even if it is after prompting.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic