[ic] set and seti with timers

Jon Jensen jon at endpoint.com
Fri Nov 13 22:10:32 UTC 2009

On Fri, 13 Nov 2009, Rick Bragg wrote:

> Just a quick thought, [set] and [seti] with individual session timers 
> does it exist?
> example: [set name=mytimer duration=60]1[/set]
> That variable would stay in the session for 60 seconds, then be cleared. 
> Of course this would be overridden by the life of the session, or any 
> other clearing such as logout etc. Has anybody done anything like this?

I haven't ever seen anything like that.

You could probably do it in an Autoload that would look for that scratch 
variable in the session and remove it if the last session access was 
longer ago than you want to keep.

There's a $Session->{time} variable, but that will probably already have 
been updated by the time you read it. So you may need to store the time 
alongside the scratch variable yourself and then subtract to see how old 
it is.


Jon Jensen
End Point Corporation

More information about the interchange-users mailing list