ASP.net securely using connection string allocated to a user

Hi

I have a website where a user logs in and the Connection String for their database is found in a table and then used behind the rest of the code. My current approach is to store the Connection String as an invisible label so the VB.net code can use it. Is this secure or should I use a different approach?
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
 
Obadiah ChristopherConnect With a Mentor Commented:
You should store it in a Static global variable.

Storing it in a hidden label is not at all secure.
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Hi

Thanks

I understand what a global variable is. What makes it static?
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.