I created a database for user authentication. After I pass loging parameters to the stored procedure in the database and they return a user ID for that user I use the following line for authentication:
FormsAuthentication.SetAuthCookie(name, False)
User gets authenticated but the problem is that ASP.NET does not recognise the user as authenticated until the page is refreshed.
...
Go to the complete details ...