Quote:
Originally Posted by Marco van Herwaarden
|
Hi & Thanks.
I looked at this and it comes too late for our purposes but it does bring up a question about user session management.
It looks like the system is doing a new query (or set of queries) whenever it needs to know the user info. My question is: why isn't this just loaded into a (single) cookie that can be used for userdata reference instead of re-hitting the database?
The cookie could be timestamped for a freshness check and it can also be refreshed or completely re-issued from time to time -- like whenever a user does something significant. Using the cookie more and the database less might be a good thing.
Hope this is a useful thought.