I have a function called hetusername, which looks at who is logged on, to see if they have permissions to press certain buttons etc.
What this means is that a user could be logged on for 1 hour and in that time the code could check their user details 10 or more times.
Trying to think of a way...