Search DominoPower's 11,412 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.
Using cookies in Lotus Domino applications is in your future (continued)

It's often necessary to use cookies because Domino doesn't maintain "session state." Maintenance of session state is common in modern Web servers such as IIS (Internet Information Server) or PHP (PHP Hypertext Preprocessor), but Domino seems to have missed out on this so far.

A session starts when a Web browser connects to a Web server. Session state refers to variables and other information specific to that browser session, stored at the Web server and used by server side scripts and applications. The session state is stored on the Web server for the duration of the browser's session with the Web server. The session state remains in Web server memory between page requests. Eventually the session ends (usually by expiration of a timeout period), and the session state is cleared from server memory.

The Domino server doesn't have any capacity to remember anything in between serving pages to you. Like a goldfish that forgets you every time you leave the room, the Domino server remembers nothing in between every page that it sends to you. There's nothing in Domino that keeps the thread of the conversation as you navigate around a Domino Web site.

For example, if I wanted to write a Web based bookshop application, I'd want the server to remember what books were in the shopping cart as the user browsed from page to page around the bookshop. This would be easy in IIS and PHP because they remember information about your current session with the Web server. You could store the contents of the shopping cart into a server side session variable and have that information available when the user goes to the next page.

Remembering the contents of a shopping cart is far less easy to do using Domino. If you want to remember something about what the user has done, what they have put in their shopping cart, or where they have been in your site, you need to find another way to store that information.

Cookies give you a kind of session state persistence because you they allow you to store session-specific information that can be retrieved and used during the course of the users session of interaction with the Web server.

So, session state persistence means that information about the state of the users session of interaction with the Web server stays in the server's memory for the time that the user continues to interact with the Web server (i.e., it persists in the memory of the Web server).

Now before you flame me, I apologize in advance if Domino does support persistent session state when using servlets, however servlets aren't my field of expertise and this article is about cookies, not servlets.

How cookies work
Fortune cookie says: "You never hesitate to tackle the most difficult problems."

As mentioned previously, a cookie is a little chunk of text that is stored at the Web browser and is returned to the Web server with each page request that the client makes to the server.

A cookie is created at the client Web browser either by sending it from the server to the client in the HTTP (Hyper Text Transfer Protocol) response header, or by executing some client side Javascript that creates a cookie on the client. In this article we will be creating cookies using Javascript. We won't be dealing with the creation of cookies via the HTTP response.


« Previous  ·  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
Flex: Using A SharedObject to Remember User Settings
Copy file instead of a link with Quickr connector in Notes
EclipseSource to Participate in Eclipse Foundation's Eclipse Training Series
CommonTime releases mDesign Studio
Quickr Domino 8.2 Fix Pack 10 is available
Sametime Business Cards: Where's that Picture Coming From?
How to let users define their own default font for Rich text fields
>> 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 --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


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