[ic] set and seti with timers

Rick Bragg lists at gmnet.net
Fri Nov 13 22:38:22 UTC 2009

On Fri, 2009-11-13 at 15:10 -0700, Jon Jensen wrote:
> 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
> -- 
> Jon Jensen
> End Point Corporation
> http://www.endpoint.com/
> _______________________________________________

Thanks, yea, that's what I do now, it was a thought that just jumped in
my head as it would be really handy.  Anyway, more important things...


This message has been scanned for viruses and
dangerous content by Green Mountain Network, and is
believed to be clean.

More information about the interchange-users mailing list