Our application, which I inherited, stores each user's login with a GUID in 
WWSTATE.  Every time you go to a new web page, it checks the date/time stamp 
and as long as it is within the defined time, it updates the time stamp and 
lets you continue, otherwise it logs you out.

Knowing this, I build SAVEDLISTS using the user's GUID as part of the key.

When my GARBAGE.COLLECT2 runs in the middle of the night, it looks for WWSTATE 
records that have exceeded the time limit, and deleted the offenders.  When I 
get to the SAVEDLISTS, if the GUID in the SAVEDLIST has been removed from 
WWSTATE, I know the SAVEDLIST is also obsolete and delete it as well.

Other things follow this concept.

Since we have very little activity in the middle of the night, and that is when 
GARBAGE.COLLECT2 runs, these files tend to get cleared out each night, and if 
not totally cleared, then 95% or better.

JRI

-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wols Lists
Sent: Wednesday, January 22, 2014 4:26 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Time for a Redback upgrade ?

On 22/01/14 19:27, Israel, John R. wrote:
> I wrote my own program to clean things up every night (GARBAGE.COLLECT2).  It 
> run from cron every night and cleans up everything: WWSTATE, SAVEDLISTS, and 
> other files unique to our application.  It also archives things as needed.  
> It keeps things running fairly tightly.

With regard to &SAVEDLISTS&, look at the LOGIN and ON.EXIT verbs, along with 
GET.STACK and SAVE.STACK.

In the days of network logins, personal stacks now seem to multiply like 
tribbles. These will allow you to get back the way it was supposed to be, one 
stack per person.

Cheers,
Wol
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://cp.mcafee.com/d/5fHCMUedEICzCX2rVEVs76XCQrEFLThKCqejqdQkTXEFECzASzt5d-WdSrCQrEFCzBZBxwQsCN6Fe4GhTPMkxFqtokrm-cGNVsSxFqtokrm-cGNVsTXwVC_FLZvC7Am3hOY_RXBQhPaf3HFLefEYJt6OaaJQSul3PWApmU6CQjq9KVKVI06vaAWv4PYurjr8Y01MjlS67OFek7qUSCnrFYq6SQOXtfzgKgGT2TQ1hYGjFYjfNVJdIzM04SO-M-r1vF6y0QJxdcQKCy04OlYQgeRyq8dd40bZ0xJyFEwrm8NR3Ph0idTdDm6H
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to