Re: [setcookie] & [redirect]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21828
interpreted = N
texte = >>Is it possible to have a setcookie and a redirect on the same page? I have >>been trying to do this, but I seem to always get redirected before the >>cookie is set? Any ideas? >> >Putting [REDIRECT http://www.smithmicro.com/] in your template will >force the remote browser to immediately 'jump' to the new location >specified, rather than displaying whatever is in the template. Any other >text in the template will be ignored.This information, although taken directly from the HTML docs, is misleading. It makes it sound like none of the webdna code in the template gets executed except for the [redirect], but that's simply not true. Nothing in the template gets displayed, of course, because the [redirect] sends the browser somewhere else -- but the webdna code appearing before the [redirect] tag *should* be executed as expected.There's probably some special interaction between [setcookie] and [redirect] that prevents the cookie from being set. The meta tag approach should work instead, or you could use [returnRaw] to set the cookie ...Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] in principle, can we [setcookie] in a [spawn] ? ("Dennis J. Bonsall, Jr." 2009)
  2. [WebDNA] in principle, can we [setcookie] in a [spawn] ? (Govinda 2009)
  3. Re: [setcookie] & [redirect] (josh@pop-art.com 1998)
  4. Re: [setcookie] & [redirect] (Kenneth Grome 1998)
  5. RE: [setcookie] & [redirect] (Olin Lagon 1998)
  6. Re: [setcookie] & [redirect] (charles kline 1998)
  7. [setcookie] & [redirect] (josh@pop-art.com 1998)
>>Is it possible to have a setcookie and a redirect on the same page? I have >>been trying to do this, but I seem to always get redirected before the >>cookie is set? Any ideas? >> >Putting [REDIRECT http://www.smithmicro.com/] in your template will >force the remote browser to immediately 'jump' to the new location >specified, rather than displaying whatever is in the template. Any other >text in the template will be ignored.This information, although taken directly from the HTML docs, is misleading. It makes it sound like none of the webdna code in the template gets executed except for the [redirect], but that's simply not true. Nothing in the template gets displayed, of course, because the [redirect] sends the browser somewhere else -- but the webdna code appearing before the [redirect] tag *should* be executed as expected.There's probably some special interaction between [setcookie] and [redirect] that prevents the cookie from being set. The meta tag approach should work instead, or you could use [returnraw] to set the cookie ...Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

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:

Country & Ship-to address & other fields ? (1997) Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997) Ongoing group search problems ... (1997) Webmerchant confirmation hooks? (1997) Globals Problem and now can't close databases (2003) RequiredFields template (1997) Major bug report on rootbeer (1997) list cookies and list http headers (1997) [WebDNA] New list (2008) Great product and great job ! (1997) Possible Bug in 2.0b15.acgi (1997) Solution help needed (1998) CMSBuilder (2004) WebCatalog can't find database (1997) WebDelivery downloads alias, not original ? (1997) Fun with dates (1997) Extended [ConvertChars] (1997) Credit card number for testing (2003) test (2002) WebCatalog2 Feature Feedback (1996)