Re: A [Loop][APPEND][URL] ... [/URL][/APPEND]/Loop] Question

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31926
interpreted = N
texte = Hi Mike,Thanks for the clarification and the tip on the cookies. I happen to have a use for it right now. Brian Digital Gear >Hey, while we're at it, here's a little trick I've been using lately that >involves interpretation of ampersands, but in a different way. Have you >ever wanted to store multiple variables in a cookie and retrieve them later? >Let's go a step further and encrypt the data in the cookie, making it more >secure. Since ampersands are illegal characters in cookies, we'll [url]-ize >the encrypted string to eliminate the ampersand problem. Here's what you >do. >[setcookie name=blah&value=[url][url][encrypt >seed=blah]XX=[url][XX][/url]&YY=[url][YY][/url]&ZZ=[url][ZZ][/url][/encrypt] >[/url][/url]] >Notice the doubling of the [url] context to eliminate the ampersands >completely. Then, to retrieve your data from the cookie, a simple multiple >text variable context is used. >[text multi=t][decrypt seed=blah][getcookie blah][/decrypt][/text] >The ampersands are interpreted properly in the multi text context and the >values for [XX], [YY], and [ZZ] are returned. Works like a champ and it's >fun at parties too. > >Enjoy, >Mike >------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: A [Loop][APPEND][URL] ... [/URL][/APPEND]/Loop] Question (Brian Wallace 2000)
  2. Re: A [Loop][APPEND][URL] ... [/URL][/APPEND]/Loop] Question (Mike Davis 2000)
  3. A [Loop][APPEND][URL] ... [/URL][/APPEND]/Loop] Question (Brian Wallace 2000)
Hi Mike,Thanks for the clarification and the tip on the cookies. I happen to have a use for it right now. Brian Digital Gear >Hey, while we're at it, here's a little trick I've been using lately that >involves interpretation of ampersands, but in a different way. Have you >ever wanted to store multiple variables in a cookie and retrieve them later? >Let's go a step further and encrypt the data in the cookie, making it more >secure. Since ampersands are illegal characters in cookies, we'll [url]-ize >the encrypted string to eliminate the ampersand problem. Here's what you >do. >[setcookie name=blah&value=[url][url][encrypt >seed=blah]XX=[url][XX][/url]&YY=[url][YY][/url]&ZZ=[url][ZZ][/url][/encrypt] >[/url][/url]] >Notice the doubling of the [url] context to eliminate the ampersands >completely. Then, to retrieve your data from the cookie, a simple multiple >text variable context is used. >[text multi=t][decrypt seed=blah][getcookie blah][/decrypt][/text] >The ampersands are interpreted properly in the multi text context and the >values for [XX], [YY], and [ZZ] are returned. Works like a champ and it's >fun at parties too. > >Enjoy, >Mike >------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Brian Wallace

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:

[WriteFile] problems (1997) Using Japanesse text with webcat. (1998) 2.0 Info (1997) [Sum] function? (1997) WebCatalog for Postcards ? (1997) R.I.P. Netscape (2003) Credit Card Number checking (1997) Cold Fusion Buster (1997) PIXO support (1997) International Orders (1998) WebCatalog 2.1b3 - Plugin or cgi ? (1997) ConverChars (1999) Duplicate Cart ID (2001) Random tags HELP!!!! (1999) Please.. copies of Digest for 7/29 and 7/30? (1997) Converting Esiting Html Table Forms to WebCat (1997) Problems with [Applescript] (1997) drop down selection list for a search (1998) shared_POP and archiving your own mailing list (2003) SiteGuard Admin Feature ? (1997)