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:

Trouble with adding multiple items to cart (1999) [sendmail] on NT? (1997) Fun with dates (1997) vs (1997) WebCat2 - many [carts] on one template page? (1997) showcart is slow (1998) WebDNA-Talk Digest mode broken (1997) Cookies and WebCat?? (1999) carriage returns in data (1997) WebCatalog Mac and cgi-bin (WebSTAR 2.0) (1997) searching with groups (1997) WARNING: MacOS The installer is broken... (2000) docs for WebCatalog2 (1997) Tracking (2004) International Orders (1998) WebCat2b15MacPlugin - showing [math] (1997) Multiple Ad databases? (1997) Extended [ConvertChars] (1997) Resume Catalog ? (1997) checksum for credit cards? (1997)