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.BrianDigital 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:
Hi Mike,Thanks for the clarification and the tip on the cookies. I happen to have a use for it right now.BrianDigital 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:
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Initiating NewCart (1997)
Configuring E-mail (1997)
[REPLACE] inside [FOUNDITEMS] (1998)
[OT] (waaaay OT) (2004)
[WebDNA] Retrieving a PDF from an email (2008)
Re1000001: Setting up shop (1997)
[WebDNA] WebDNA and Coda 2 - Get it up and running... (macOS) (2018)
WebCat2 - many [carts] on one template page? (1997)
[WebDNA] Data Type Bool (2009)
Secure server question (1997)
WebTen Memory Error with Plug-In (1998)
[OT] FTP client (2003)
WebCatalog 2.0 b 15 mac (1997)
First postarg not taking in $Commands (1997)
[append] vs. [appendfile] delta + question? (1997)
t or f (1997)
unix permissions theory applied to db security? Or...? (2000)
Progress !! WAS: Trouble with formula.db (1997)
RFE: Accessing Server Environment Variables (2003)