A
asadikhan
Hi,
I have a table in my database called users which contains user
information like their login id, password, first name, last name,
phone, etc. Once I retreive this information, I'd like to hold it in
memory. One obvious way of doing this is session variables. However, I
am thinking whether usign a Dataset would be more suitable in this
situation. If I create a table called "user" and store the user's
information in that table (it would have only one row with the user's
information) would that be a good way of doing this? (I have a feeling
it won't be, but I can't reason why).
I guess what I am fuzzy on is whether the dataset object is held in
memory and would be accessible throughout the application. Or would I
have to declare my dataset as a global object somewhere (where would I
do that?)
I would appreciate it if someone could help me think clearly about
this.
Regards,
Asad
I have a table in my database called users which contains user
information like their login id, password, first name, last name,
phone, etc. Once I retreive this information, I'd like to hold it in
memory. One obvious way of doing this is session variables. However, I
am thinking whether usign a Dataset would be more suitable in this
situation. If I create a table called "user" and store the user's
information in that table (it would have only one row with the user's
information) would that be a good way of doing this? (I have a feeling
it won't be, but I can't reason why).
I guess what I am fuzzy on is whether the dataset object is held in
memory and would be accessible throughout the application. Or would I
have to declare my dataset as a global object somewhere (where would I
do that?)
I would appreciate it if someone could help me think clearly about
this.
Regards,
Asad