A quick check shows that "custom scopes" are still functioning in 5.5.
You can use a custom scope to store information with a constant
REFERENCEKEY. The scope behaves like any other scope. Keep in mind that
the variables will only expire after a period of inactivity (the scope is
not assigned to or referenced for > variableTimeout minutes.)
Currently: <@CURRENTTIMESTAMP><br>
<@IFEMPTY <@VAR myScope$foo>>
<b>myScope had expired.</b><br>
Assigning with timeout of 1 minute.<br>
<@ASSIGN myScope$foo bar>
<@ASSIGN myScope$variableTimeout 1>
Reload after <@SECSTOTS <@CALC "<@TSTOSECS <@CURRENTTIMESTAMP>>+60">>
<@ELSE>
<b>myScope not empty.</b><br>
Since we referenced the scope in the @IFEMPTY, the countdown has been
reset.<br>
Reload after <@SECSTOTS <@CALC "<@TSTOSECS <@CURRENTTIMESTAMP>>+60">>
</@IF>
-----Original Message-----
From: WebDude [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 26, 2007 10:23 AM
To: [email protected]
Subject: Witango-Talk: Expiring a domain scope variable
Is there an easy way to expire a domain scope variable, let's say, after 5
minutes?
Thanks!
WebDude
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf