Re-read from database or store in a session variable?
-
Hi, need a little bit of advice. I have a web app which consists of a user profile page, amongst others. When the user profile page is accessed I read the user's information into an object from a database and display it. If the user posts back on that page should I be re-reading the user's information each time or store the user object in a session variable? Any advice is appreciated, thanks.
-
Hi, need a little bit of advice. I have a web app which consists of a user profile page, amongst others. When the user profile page is accessed I read the user's information into an object from a database and display it. If the user posts back on that page should I be re-reading the user's information each time or store the user object in a session variable? Any advice is appreciated, thanks.
you can store the information in caching and retrive it
Padmanabhan
-
Hi, need a little bit of advice. I have a web app which consists of a user profile page, amongst others. When the user profile page is accessed I read the user's information into an object from a database and display it. If the user posts back on that page should I be re-reading the user's information each time or store the user object in a session variable? Any advice is appreciated, thanks.
You should store it in Session variable. Regards, _Anil
jhgdgf