Re: Dealing with da back button

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24724
interpreted = N
texte = > Just curious, how are you setting the cookie to expire? My site > allows visitors to return to check on the status of their order, so I > want that cookie expired before then. But, I'd like to have it not > expire, if say, they want to surf somewhere else during that browser > session and come back and finish their order... > > WillAfter someone finishes their order I usually set the cookie equal to the value clear or null whatever, some value that is not a cart. Then whenever I get to the point where I set a cookie I only set the cookie if either the cookie sent by their browser is equal to clear or equal to nothing (the case when they've never visited the site). In other words use [getcookie] to check for a valid cart, if it is not valid use [setcookie] to set a cookie. I try to wrap all this logic into an include file which I can just include at the top of all pages. The only trick to remember is that you can not use [getcookie] and [setcookie] on the same page. -Josh ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: Dealing with da back button (David Bastedo 1999)
  2. Re: Dealing with da back button (Josh Tiger 1999)
  3. Re: Dealing with da back button (Will Starck 1999)
  4. Re: Dealing with da back button (Josh Tiger 1999)
> Just curious, how are you setting the cookie to expire? My site > allows visitors to return to check on the status of their order, so I > want that cookie expired before then. But, I'd like to have it not > expire, if say, they want to surf somewhere else during that browser > session and come back and finish their order... > > WillAfter someone finishes their order I usually set the cookie equal to the value clear or null whatever, some value that is not a cart. Then whenever I get to the point where I set a cookie I only set the cookie if either the cookie sent by their browser is equal to clear or equal to nothing (the case when they've never visited the site). In other words use [getcookie] to check for a valid cart, if it is not valid use [setcookie] to set a cookie. I try to wrap all this logic into an include file which I can just include at the top of all pages. The only trick to remember is that you can not use [getcookie] and [setcookie] on the same page. -Josh ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Josh Tiger

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

pc (1997) Summing fields (1997) How can I Add several Items into the cart at once? (1997) Emailer setup (1997) [Sum] function? (1997) Summing fields (1997) Multiple servers and Webcat (1998) WebCat2 - storing unformatted date data? (1997) [BoldWords] WebCat.acgib15Mac (1997) [WebDNA] WebDNA on W2k3 (2009) Help! WebCat2 bug (1997) HELP WITH DATES (1997) Mail Server Needed. (1998) Seeking Better Display of results... (1997) Multiple download orders of the same product? (1997) WebCatalog2 Feature Feedback (1996) SiteEdit Pro Update Announcement (1997) [WebDNA] WebDNA Email Auth Functioning? (2014) WebCat Error Log problem (2.0.1, acgi, Mac) (1997) Disconts (2004)