|
well, just be aware that if its global (static, public)
you will have to be careful of synchronisation issues when
accessing / deleteing from it...
i generaly wouldn't bother getting something out of a db
and storing it in a variable like that unless the query was
*REALLY* slow and the difference would significantly improve
the speed of my app, i can't imagine these would be true
in your case, so I would not do it.
however, if you are constantly trying to query the group
of your user, or something, that isn't a great idea ... I
would store all user details in some session object - not
sure if you are doing that.
__________________
direct entry file specification.
|