ANN: CGI tutorial online

J. Landman Gay jacque at hyperactivesw.com
Tue Apr 27 18:07:16 EDT 2004


On 4/27/04 3:51 PM, Gregory Lypny wrote:

> Excellent tutorial Jacqueline!  Your seminar notes are very well written.

Thanks.

>     I'm also wondering how stacks as cgi's handle globals (do they exist 
> only for each instance the engine is called?) and how I can create the 
> equivalent of tokens (client specific values that are alive for the 
> duration of their session).

Every time a CGI runs, the engine starts up, runs the script, and quits. 
Any globals will only be available during that brief time. There is 
little call for globals in CGIs really, because of this. The only time 
I'd think you would need one is if you are using a stack to process the 
request and you need to carry a value between two different scripts in 
the stack.

All CGIs suffer the same limitations though, and that's why cookies were 
invented to store persistent values. LibCGI has handlers that allow you 
to create and set cookies, so that's probably how I'd do it.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


More information about the use-livecode mailing list