Search DominoPower's 11,420 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
PROGRAMMING POWER
Using cookies in Lotus Domino applications is in your future
By Andrew Stuart

Fortune cookie says: "You may attend a party where strange customs prevail."

"Cookie" isn't a word that we use here in Australia. Instead, we use the word "biscuit." When I hear the word, "cookie," the image that pops into my head is American kids coming home from school and having milk and cookies.

Eating cookies and milk after school is an American tradition, not an Australian one. Kids come home from school here in Australia and eat toast with vegemite. Vegemite is a uniquely Australian, thick, black, gooey substance that makes non-Australians choke. Australians love it.

These cultural differences distracted me, and for a long time I had the wrong analogy in my head. I didn't see the relationship between "milk and cookies" and "Internet cookies."

A day of revelation came however, and I realized that the correct analogy for Internet cookies wasn't "milk and cookies," rather it was "Chinese Fortune Cookies." Ding! On came the lights, and it all made sense.

Strangely, Netscape's cookie specification document (at http://www.netscape.com/newsref/std/cookie_spec.html) says, "The state object is called a cookie, for no compelling reason." I don't believe this.

The Chinese Fortune Cookie is such an excellent analogy that it's hard to believe that the Web browser programmers didn't have Chinese Fortune Cookies in mind when they coined the term.

Chinese Fortune Cookies aren't even Chinese. They're a product of the U.S.A, invented in 1909 by Makota Hagiwara, manager of Golden Gate Park's Japanese Tea Garden in San Francisco. Makota handed them out to his customers as a thank you.

Other accounts say that the Chinese Fortune Cookie came about in the 13th or 14th century when the Mongols reigned over China. The Chinese planned rebellion against the Mongols and communicated their plans in secret messages hidden inside Moon Cakes that are traditionally used to celebrate New Year.

Whatever their origin, the underlying concept is the same. Chinese Fortune Cookies are little packages containing a simple text message. Internet cookies are also little packages containing a simple text message. In addition to the text message, Internet cookies store some other stuff, such as an expiry time that states how long the cookie is valid for, and a list of domains for which the cookie is valid. There's not much more to it than that. Cookies are little chunks of text passed from a Web server to a Web browser and back again.

Maintaining session state: making up for Domino's lack of memory
Fortune cookie says: "It takes more than good memory to have good memories."


1  ·  2  ·  3  ·  4  ·  5  ·  6  ·  Next »
Other articles you might like
Home > Internet Technologies > JavaScript (13 articles)
   Sorting your Domino views with JavaScript
   Give your Domino views life with DHTML
   Using dynamically generated HTML to thwart spam email address harvesting
Home > Internet Technologies > Cookies (2 articles)
   Where cookie comes from
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Five trends for 2010
Latest Lotus Headlines
New Notes/Domino Technotes published about Chile's extended daylight saving time
SnnT: How to prevent Google from listing your Sametime Server
How to send someone an email that shows your calendar availability
"The collection has become invalid"
More XPages onclick event weirdness...
Domino 8.5.1 Fix Pack 1 Interim Fix 1 (8.5.1 FP1 IF1) - DAOS Fixes
Domino Designer 8.5 Tip: Where Working Sets Are Stored
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Make Mafia Wars an offer it can't refuse
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Removing an Office installation that doesn't want to go away
-- Advertisement --

Find unused Lotus Notes groups and clean up your address book
Have you ever wanted to get rid of old Lotus Notes groups that were cluttering up your address book, but you weren't sure if they were used? Find Unused Groups can help.

Find Unused Groups will check your mail and ACL groups to help you determine if they are used, and who uses them.

Learn how to easily clean up your address book.

-- Advertisement --

Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.

Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).

Tap here to get started!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login