how to create a website ?
Unclear. Are you receiving an error creating a website with Visual Studio?
what kind of precautions we should take before creating a website ?
Use Forms Authentication for authorization not Session. Forms Authentication is a library that comes with ASP.NET, configured in the web.config, works with Web Forms authentication/authorization server controls, and works with standard ASP.NET authorization.
An Overview of Forms Authentication (C#)
Implement forms-based authentication in an ASP.NET application by using C#.NET
Session is typically the wrong tool for authorization/authentication. Session does not scale well and Session is volatile by definition. You'll need to write and test an entire authentication/authorization process while ASP.NET comes with Forms Authentication out-of-the-box.
Lastly, consider creating new development in the latest .NET 7 framework rather than .NET framework which ended with version 4.8.