Multiple choice technology programming languages

Which is the best place to store connectionstring in .NET projects ?

  1. Session

  2. Cookie

  3. Web.config

  4. Variable

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Web.config is the standard and most secure location for storing connection strings in .NET. It allows for easy configuration changes without recompiling, supports encryption, and is accessible globally within the application, unlike session or cookie storage.