Hi.
I Have Login Page. I need to keep Information about logging user.
Each user has its database and through code login I get connectionstring. I need to keep this connectionstring in memory to use next query. Any ideia?
Thankyou
Teles
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted Apr 2, 2012, 7:22 PM EDT
I bit confused with your question.
If you want to store the logged information of the user for the next time login then you are prefer to use the cookies.
But you mentioned each user has own database and you want to remember the connection string for the next query?
Microsoft suggests to use the connection pooling and it will open the maximum number of connection and it will be in the memory. For the further request it uses the same connection string and will be fast to the connection with sql server.
For this, you need to enable the connection pool property in the web.config file.
If i am not right then clarify me.
Nadia Teles11 reputationPosted Apr 3, 2012, 3:52 AM EDT
My application will be installed in a WebServer. Some customers will use this application.
I have an xml file with connectionstring of each clients. Example:
Client A >
Client B >
In the login page, I have an client code and through it I locate connectionstring. This connectionstring need to be available in some place because she will be used in the next queries.
Beyond of connectionstring , I need to keep other information. How to make this for each user logado in the system?
Thankyou
Teles
brunda kRank #3,804 · 389 reputationPosted Apr 3, 2012, 8:12 PM EDT