Forms authentication using user names list in web.config Part 90

preview_player
Показать описание
Text version of the video

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.

Slides

All ASP .NET Text Articles

All ASP .NET Slides

All Dot Net and SQL Server Tutorials in English

All Dot Net and SQL Server Tutorials in Arabic

Anonymous authentication is fine for web sites that contain public information that every one can see. We discussed about Anonymous authentication in
Part 85 - Anonymous authentication
Part 86 - Anonymous authentication and impersonation

Windows authentication is used for intranet web applications, where the users are part of a windows domain-based network. We discussed about Windows authentication in Parts 87, 88 and 89.

In this video we will discuss about
1. When to use Forms Authentication
2. How to enable Forms Authentication

When to use Forms Authentication?

The description of the attributes
loginUrl - The URL of the login Page

timeout - Specifies the number of minutes the authentication cookie persists on the clients's computer. The default is 30 minutes.

defaultUrl - The url the user will be redirected after authentication

Protection - Specifies the protection for authentication cookie stored on the clients's computer. The default is All, which performs encryption and data validation. Other possible settings are Encryption, Validation, and None.

if (FormsAuthentication.Authenticate(txtUserName.Text, txtPassword.Text))
{
// Create the authentication cookie and redirect the user to welcome page
FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, chkBoxRememberMe.Checked);
}
else
{
lblMessage.Text = "Invalid UserName and/or password";
}

There are 2 problems with this application at the moment.
Рекомендации по теме
Комментарии
Автор

You are the best teacher ever!
your tutorials are so thorough and so very easy to understand!
Thank you for all your efforts!

joewinfield
Автор

Excellent sir, very clear and explanatory. you are the best teacher ever I have seen. Thanks

KhalidAfridi
Автор

Thank you very much for taking time to give feedback. In the description of this video, I have included the link for ASP .NET, C#, and SQL Server playlists. All the videos are arranged in logical sequence in these playlists, which could be useful to you. Please share the link with your friends who you think would also benefit from them. If you like these videos, please click on the THUMBS UP button below the video. For email alerts, when new videos are uploaded, you may subscribe to my channel.

Csharp-video-tutorialsBlogspot
Автор

Many of my doubts in authentication module are cleared just by this single video... Thank you :-)

naveenscion
Автор

You have awesome tutorials!!  Well explained, and great examples.  I've learned so much watching your videos.

jericc
Автор

superb coaching..super voice...great learning with ur videos....

xyzabc
Автор

"Who said you can delete my cookies!! They are my cookies!!" :D.
Thanks for all the awesome videos and lessons.
Top class videos.

stanknight
Автор

Thank you, Venkat! I find your tutorials really helpful and more than that they are so easy to follow. You are doing a great job!

vasilicanae
Автор

You're videos are awesome. Thanks

jorgeespino
Автор

I tried this tutorial and 100% it's working, Well explained and it's so easy to understand . Thank you so much Venkat for your contribution.
How do I authenticate db users ?

samr
Автор

Sorry Venkat I solved it by myself :). Thank you anyway for your tutorials.


Greetings from Italy

valoyossa
Автор

your videos are so so helful..thanks a ton

sonip
Автор

Hi Jayanthi, please check "Forms authentication in asp.net and user registration - Part 91". I think this video has what you are looking for. If you search youtube for, asp.net video tutorial for beginners, you should get the complete playlist. From the playlist please check Part 91. Hope that helps you.

Csharp-video-tutorialsBlogspot
Автор

I wish i could give this 100 THUMS UP!

neal
Автор

Hi, One example would be an application, where the employees of the company can view their payslips. Hope this helps.

Csharp-video-tutorialsBlogspot
Автор

Hello,
Mr. Venkat
Everything Ii learn in asp.net is gift from you. Please share some teachings regarding role based authentication.Thank you once again for the tutorial.

techfirst
Автор

I don't have any video at the moment, that notifies the user about the session that is going to expire very soon. May in the very near future I will record a video about this.

Csharp-video-tutorialsBlogspot
Автор

Thank you very much! Helped me a lot! Thanks again

bot
Автор

great videos...just wanted to mention the forms authentication is outdated and i wanted to ask if you can make any videos on membership with visual studio command prompt and aspnet_regsql as well or not?? thank you in advance

alizalzar
Автор

That's great. Thanks for the confirmation.

Csharp-video-tutorialsBlogspot
welcome to shbcf.ru