lleemon
May 26th, 2004, 08:58 AM
Looking for the best way to store data across the site while a user is signed in using asp.net
I have read so far that cookies probably are not the best due to browser issues. I also have seen that session variables will work but could chew up a lot of memory. Also see with asp.net we have caching available and thought I could cache data from a database after user was authorized so on each page we have this info. Issue with caching is if the server needs memory it could take this info if set at low priority.
Then I go back to keeping just my key value for the user in a session value and then on page_load query the db to get the required data for his account on each page.
Any experts out there have the professional way of doing his?
Thanks in advance.
I have read so far that cookies probably are not the best due to browser issues. I also have seen that session variables will work but could chew up a lot of memory. Also see with asp.net we have caching available and thought I could cache data from a database after user was authorized so on each page we have this info. Issue with caching is if the server needs memory it could take this info if set at low priority.
Then I go back to keeping just my key value for the user in a session value and then on page_load query the db to get the required data for his account on each page.
Any experts out there have the professional way of doing his?
Thanks in advance.