Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

set and seti with timers

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


lists at gmnet

Nov 13, 2009, 12:55 PM

Post #1 of 3 (638 views)
Permalink
set and seti with timers

Hi,

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?

Thanks
Rick





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


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


jon at endpoint

Nov 13, 2009, 2:10 PM

Post #2 of 3 (589 views)
Permalink
Re: set and seti with timers [In reply to]

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/

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


lists at gmnet

Nov 13, 2009, 2:38 PM

Post #3 of 3 (586 views)
Permalink
Re: set and seti with timers [In reply to]

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...

Rick




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


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.