(#54) Login, Signup and Logout in mvc | mvc tutorial for beginners in .net c#

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ม.ค. 2025

ความคิดเห็น • 220

  • @vaibhavsharma6479
    @vaibhavsharma6479 4 ปีที่แล้ว +1

    maa kasam issey best video nahi dekha aaj tak, thanks a trillion, you are simply the best.....

  • @triplodosheals
    @triplodosheals 5 ปีที่แล้ว +9

    The best ever teaching, Simplicity on peak and a wonderful explanation . Highly recommended for beginners.
    Thank you SIR

  • @mohdnasirhussain1
    @mohdnasirhussain1 6 ปีที่แล้ว +3

    jabardast es video se bahut kuch sikha hai kahi pr b authentic and authorised pr aisa video nahi hai detail mai great bro

  • @flowrawhite9950
    @flowrawhite9950 6 ปีที่แล้ว +8

    best tutorial for Login and Logout mvc I have ever seen

  • @ashutoshsingh5568
    @ashutoshsingh5568 3 ปีที่แล้ว +2

    Thank you so much Nitish bhai. It was a great help.
    I had been searching for the solution of implementing Authorize attribute and role based authentication for a week and couldn’t find a single help from any article including StackOverflow.
    And especially for an existing mvc project. Although I have been watching your tutorials since last year but didn’t go that far. But today I’m happy that finally I’ve learnt this.
    I can’t express my gratitude in words. Please keep posting informative videos.
    God bless you.

    • @WebGentle
      @WebGentle  3 ปีที่แล้ว +1

      Thank you 😊

  • @surendrarahangdale9806
    @surendrarahangdale9806 6 ปีที่แล้ว +3

    Thanks bro...this video very helpful me...bcz I have been search on youtube for authentication and authorization since 6 month , I couldn't find ...but this video really understood me ..

  • @MuhammadAdnan-gx6rd
    @MuhammadAdnan-gx6rd 6 ปีที่แล้ว

    Bhai is sey baria video TH-cam pey ni melegi. ... Superb genius bro

  • @suganyaramalingam8533
    @suganyaramalingam8533 5 ปีที่แล้ว +1

    This video very useful for mvc beginners...Thank u sir... I don't know Hindi!! but I understand for your way of teaching.. thank you...

  • @scientificsapience9901
    @scientificsapience9901 3 ปีที่แล้ว

    This is the most perfect tutorial I have ever come across, from the scratch.

  • @1prdas1
    @1prdas1 4 ปีที่แล้ว +1

    Thank you soooo much. Very detailed step by step video. Now I know how authentication system is implemented. Fantastic trainer you are.

  • @pavanshevle6830
    @pavanshevle6830 6 ปีที่แล้ว +1

    Most awaited video.. thanks..nice content..good luck bro

  • @shubhamkaushik4834
    @shubhamkaushik4834 4 ปีที่แล้ว

    Best tutorial of the word for login

  • @rkmusadia3489
    @rkmusadia3489 2 ปีที่แล้ว

    SIR YOUR ALL VEDIOS ASP NET MVC ARE THE BEST OF ALL OTHERS YOU TUBE VEDIOS. PLS MAKE ADMIN PANEL IN MVC

  • @sergioernestotostadosanche2509
    @sergioernestotostadosanche2509 4 ปีที่แล้ว +1

    Excellent Tutorial Bro !!! It helps a lot, have an super day!

  • @بسمةوليدخالدشاكر
    @بسمةوليدخالدشاكر 4 ปีที่แล้ว +1

    Thank you very much your project is perfect and im resolve my problem..

  • @aashirhameed2526
    @aashirhameed2526 4 ปีที่แล้ว +2

    Can someone please explain the logic behind using Membership model class @13:34 for login purpose
    and the using User class for the signup purpose @15:34.
    I will be really thankful to you for the explanation.

    • @arfeenkhan2831
      @arfeenkhan2831 4 ปีที่แล้ว

      Same Question! Did You find any Answer?

  • @pcerrorsandsolutions3438
    @pcerrorsandsolutions3438 2 ปีที่แล้ว

    You are best of the best man ❤❤❤

    • @WebGentle
      @WebGentle  2 ปีที่แล้ว

      Thank you for your words. I love to hear your feedback on LinkedIn where you can tag my profile www.linkedin.com/in/meettonitish

  • @yogeshwarsingh6768
    @yogeshwarsingh6768 3 ปีที่แล้ว

    I used crud opration which u explained in previous video no 30 to 34 and extant this project and need to implement login logout page also

    • @yogeshwarsingh6768
      @yogeshwarsingh6768 3 ปีที่แล้ว

      What type of code i will write for employeesRepositary

  • @SaifulIslam-yx5xz
    @SaifulIslam-yx5xz 4 ปีที่แล้ว +1

    This tutorial is so much clear and understandable.. Thank you so much for making these kind of video..
    I need to Know one question this is how can I use multiple login form like admin user and others panel.
    Thanks in advance..

  • @sanketpatil5420
    @sanketpatil5420 ปีที่แล้ว +1

    Getting error while adding View for ActionResult Login() in Account Controller ->
    There was an error running the selected code generator: 'Unable to retrieve metadata for 'abc.Models.Membership', one or more validation errors were detected during model generation:
    Membership: : EntityType 'Membership' has no key defined. Define the keys for this EntityType.
    Memberships: EntityType: EntitySet 'Memberships' is based on type 'Membership' that has no key defined.

  • @firdesbekir4935
    @firdesbekir4935 5 ปีที่แล้ว +2

    Thank you very much for the information! You help me a lot!

  • @prashantchudasama9930
    @prashantchudasama9930 5 ปีที่แล้ว +2

    Excellent Brother 👌

  • @aamersaeed1529
    @aamersaeed1529 4 ปีที่แล้ว +3

    Nice video. I have questions:
    First time you make a class with name membership and while creating view you mentioned that membership class and while creating signup functionality you use user model class. can we use same user model class both times?? and why you create membership class?

  • @saadsalam
    @saadsalam 5 ปีที่แล้ว

    To the point and very good. Please do more videos.

  • @mousumidatta7718
    @mousumidatta7718 4 ปีที่แล้ว

    Nice video.. Explained nicely...Thanks

  • @narendarsingh4672
    @narendarsingh4672 6 ปีที่แล้ว

    Great Sir,I am grateful to you.

  • @Cook4Poors
    @Cook4Poors ปีที่แล้ว

    Nice explanation

  • @mayurdhumal01
    @mayurdhumal01 5 ปีที่แล้ว

    बहुत बडिया भाई,
    Love you

  • @shaileshpatil8370
    @shaileshpatil8370 5 ปีที่แล้ว

    Very good and detailed explanation.

  • @orphicburble9163
    @orphicburble9163 3 ปีที่แล้ว

    This video is very helpful i am interested in learning more from you aap full course v krwate ho?

  • @VikasSharma-hl2ob
    @VikasSharma-hl2ob 3 ปีที่แล้ว

    In this Video you have missed many things because of which I cannot do this program in the way it is appearing on tour screen. Please Mention all the things correctly once. I can see @15.30 you have missed something to explain because of which I cannot get the correct Output.
    Though you have shared the source code still as a beginner I cannot understand that and I have seen many of your videos same issue is there. No doughty you explain every point very clearly and that is easy to understand. But as a beginner I understand every point is important.

  • @AB-wn3ne
    @AB-wn3ne 3 ปีที่แล้ว

    Great video....very good and simple explanation!👍👍

  • @tanujdit
    @tanujdit 4 ปีที่แล้ว

    Nice Explanation !! Keep it up

  • @deepavishwakarma3330
    @deepavishwakarma3330 ปีที่แล้ว

    Hi sir instead of user class which You have used in this tutorial?Is there any other way to solve it.

  • @zaidilyas2276
    @zaidilyas2276 5 ปีที่แล้ว +2

    why did you created membership class?

    • @eliashossain1412
      @eliashossain1412 5 ปีที่แล้ว

      Same question. Was not User model class enough, just like Employee class?

  • @GopalReddy13702
    @GopalReddy13702 5 ปีที่แล้ว

    ABSOLUTELY AWESOME SIR...LOVE YOU....THANK YOU

  • @rahulmarathe2931
    @rahulmarathe2931 2 ปีที่แล้ว +1

    Sir, logout karne ke baad agar previous button press kiya to wapas, bina login ke main pages pe redirect hota hai. Wo history kaise clear kare?

  • @_arpita_kumari_
    @_arpita_kumari_ 4 ปีที่แล้ว

    This tutorial is so helpful:)
    I have a request, Can you make a video on login through social sites like Facebook, Google, and Linkedin.
    That would be a great help.
    Thank you in advance!

    • @_arpita_kumari_
      @_arpita_kumari_ 4 ปีที่แล้ว

      Without using the MVC template Microsoft gives for social login.

  • @Funkyoo4
    @Funkyoo4 6 ปีที่แล้ว

    thanks a lot ...this video very clear and helpfull godbless you sir

  • @TechieAsad
    @TechieAsad 6 ปีที่แล้ว

    How we can use data annotations with ado.net data model classes and also apply foreign key on that

  • @raoabdulraheem6451
    @raoabdulraheem6451 4 ปีที่แล้ว +1

    Server Error in '/' Application.
    The resource cannot be found.
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
    Requested URL: /
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0

  • @mayurdhumal01
    @mayurdhumal01 5 ปีที่แล้ว +2

    Can you please explain
    Difference between FormsAuthenticationTicket and FormsAuthentication.SetAuthCookie
    ****Waiting for reply***

  • @abbrandofficial
    @abbrandofficial 2 ปีที่แล้ว

    am facing visual studio tools require desktop docker error?

  • @deepamdule5887
    @deepamdule5887 3 หลายเดือนก่อน

    sir let say i want to have 2 types o users/role same like user and admin but i want to use different tables for both types of user ,then in that casehow will i make authentication possible with 2 diffrent users.

    • @WebGentle
      @WebGentle  หลายเดือนก่อน

      Why do you want to use different tables? you shouls focus on db normalization

  • @martinmartin8894
    @martinmartin8894 3 ปีที่แล้ว

    You are the best!

  • @zackryderize
    @zackryderize 2 ปีที่แล้ว

    User class ka tw btao wo kahan sy ai razor view me? Uska overall purpose etc.

  • @hematomar8003
    @hematomar8003 4 ปีที่แล้ว +1

    thanks for video . this is very helpful.
    i have a one point, that i want to ask, signup form validation is not working, how to resolve. please help me.

    • @1prdas1
      @1prdas1 4 ปีที่แล้ว +1

      I followed all steps as mentioned in video and its working. Make sure to re watch the video and recheck the code again, may be some code is not proper.

  • @marsel5802
    @marsel5802 4 ปีที่แล้ว

    Thank you so much!
    I solved it

  • @beedueedu2542
    @beedueedu2542 2 ปีที่แล้ว +1

    after logout, if we click the back button on browser, it still redirects to the previous page (though, if we hit refresh it goes to the return url mentioned in webconfig). How to clear the cache on logout to rectify this behaviour?

  • @bhupenderkumar9281
    @bhupenderkumar9281 4 ปีที่แล้ว +1

    Hi sir,
    User.Identity.IsAuthenticated always returning value true whether login or not how can fix this
    .

  • @muazamkhan3944
    @muazamkhan3944 2 ปีที่แล้ว

    Hello sir it is very helpful vedio but i need multiple client login use one database

  • @phamminhtai3584
    @phamminhtai3584 3 ปีที่แล้ว

    Thank you soo much

  • @ranatahirtahir9980
    @ranatahirtahir9980 3 ปีที่แล้ว

    Nice Bohut ACHA

  • @ashvinfofandi107
    @ashvinfofandi107 5 ปีที่แล้ว

    Thanks a lot.please show how to sign-up and login with fb or Gmail or any other social site.

  • @shaheemqayumee1206
    @shaheemqayumee1206 3 ปีที่แล้ว +1

    I followed the vedio but Authentication is not working its not redirecting to login page can you please help me

  • @AjeetKumar-lc7ni
    @AjeetKumar-lc7ni 5 ปีที่แล้ว

    Very nice video sir

  • @shaileshpatil2615
    @shaileshpatil2615 5 ปีที่แล้ว

    Thanks for the video .It was helpful.
    I have some doubt . can you tell me where can i find the front end part code?
    Do i have to watch some other video of yours?

  • @shubhamhundlekar3092
    @shubhamhundlekar3092 4 ปีที่แล้ว

    sir you are awesome thank you so much

  • @shivanichoudhary1885
    @shivanichoudhary1885 5 ปีที่แล้ว

    osm video ....learn alot thank you sir

    • @WebGentle
      @WebGentle  5 ปีที่แล้ว

      Keep learning 👍

  • @pushpapacharya
    @pushpapacharya 4 ปีที่แล้ว

    Please explain Active directory authentication and how it difference from Form Authentication.

  • @knowledgeys6652
    @knowledgeys6652 5 ปีที่แล้ว

    Web API return types ke baare main kuch video kariya plz..

  • @NidhiSharma-ur4yo
    @NidhiSharma-ur4yo ปีที่แล้ว

    What is officeEntities? in which folder
    can we find it

  • @upendraadhikari6268
    @upendraadhikari6268 3 ปีที่แล้ว

    Hey @WebGentle, I followed your tutorial. I have couple pages that user should visit without Login and only one page needs login. I followed you and login works for particular page but other pages showing database error although it was working earlier. Any setting on webconfig so that there won't be any error?

  • @MrRicky192
    @MrRicky192 5 ปีที่แล้ว +9

    Could somebody add English subtitles please?

  • @shibugope2809
    @shibugope2809 3 ปีที่แล้ว

    if i opened the same url with more than one tab and from any of one i logout then how to logout from all tab

  • @AmanGupta-xy8ul
    @AmanGupta-xy8ul 4 ปีที่แล้ว +1

    Sir ye code file 2015 version pr nhi chlega kya ??? IIS server error show ho rha h

    • @akashgaikwad5903
      @akashgaikwad5903 4 ปีที่แล้ว

      Same here I am also struggling to run the application

  • @shailendrasoni9184
    @shailendrasoni9184 หลายเดือนก่อน

    Hi, i am getting problem while build the data base connection, getting error
    Severity Code Description Project File Line Suppression State
    Error (active) CS0246 The type or namespace name 'Employee' could not be found (are you missing a using directive or an assembly reference?) WebApplication1 D:\My Study\ASPDot Net\Projects\WebApplication1\WebApplication1\Model1.Context.cs 28

    • @WebGentle
      @WebGentle  หลายเดือนก่อน

      I think you are missing Employee class in your dbcontext class. More details can be given by having a look on code.

  • @usamafarrukhkhan3825
    @usamafarrukhkhan3825 5 ปีที่แล้ว

    Sir please make some tutorial on Integrating Admin Panel with Full Authentication SIGN IN AND SIGN UP

  • @technick121
    @technick121 6 ปีที่แล้ว +1

    can make a video for logout automatically in mvc please help
    suppose user keep system idle mode after login and then after 30 seconds it's gone to login page if user does not use system for 30 seconds

  • @amittiwari-vc6wv
    @amittiwari-vc6wv 6 ปีที่แล้ว

    Sir why didn't you use separate class project for models and database as you have used in CRUD in video #30 to 36.. please advise for best architecture in mcv.. and if there is any video related to this please share link

    • @WebGentle
      @WebGentle  6 ปีที่แล้ว +1

      For best architecture everyone has his on point -
      Some people prefer to use separate class library project for code separation and some of them use everything under project.
      But I would suggest you to use separate project as it gives you more separation of code which is beneficial in many ways.
      Hope it will help you.

  • @hassannasar7905
    @hassannasar7905 2 ปีที่แล้ว

    Well done

  • @Musa1978K
    @Musa1978K 4 ปีที่แล้ว

    dude thank you very much

  • @code_with_ankush
    @code_with_ankush 5 ปีที่แล้ว +1

    thank you Sir ji

  • @pratikpatel2221
    @pratikpatel2221 4 ปีที่แล้ว

    Sir in _Layout.csHtml = (User.Identity.IsAuthenticated) ye line k bare me thoda detail me batao na k kese work karata he
    Thanks for this tutorial its very helpfull

  • @tanojsai8636
    @tanojsai8636 6 ปีที่แล้ว +1

    i have a problem when i implement the logout method after logout when i press back button in browser it is going to Index page any help

    • @WebGentle
      @WebGentle  6 ปีที่แล้ว

      This is happening because of browser caching. To avoid it you can use caching filter with time zero on index action method.

    • @tanojsai8636
      @tanojsai8636 6 ปีที่แล้ว

      It works thanks but I have to place in each and every control to work or else if I placed in web.config file but when ever the user going to one control to another if he/she press back button it will not work any help

    • @tanojsai8636
      @tanojsai8636 6 ปีที่แล้ว

      Reply bro

  • @rasirami481
    @rasirami481 3 ปีที่แล้ว

    Hi,I am facing some issue. Antiforgery problem while redirecting url to login page

  • @sanjayjha9367
    @sanjayjha9367 6 ปีที่แล้ว

    Sirjee very helpful video Thank You sir he bataye ki hum some se password kaise encrypte Karen. Microsoft ka password encrypt use nahi karna chahte hain please sir batayen.

  • @jankiparmar1550
    @jankiparmar1550 3 ปีที่แล้ว

    Me apke video dekh kr add controller kiya to controller add nhi ho rha pakage nhi mil rha ...can u help?

  • @amolkalbhor2580
    @amolkalbhor2580 6 ปีที่แล้ว

    Thank you sir.. very helpful

  • @syedbasit6075
    @syedbasit6075 5 ปีที่แล้ว +1

    Helpful video..

  • @arunavkhare2733
    @arunavkhare2733 4 ปีที่แล้ว

    nicely explained

  • @sulemankhalid7542
    @sulemankhalid7542 5 ปีที่แล้ว

    Please make some tutorials on state management

  • @studentgr3518
    @studentgr3518 5 ปีที่แล้ว +1

    Hi, Nice explanation. I was trying the same thing you explained in this video and it is not redirecting to login page when i click on get list or create in spite of putting the Authorize attribute to the controller level and changing url to Account/Login in the web config file. Can you let me know what could be wrong? Thanks

  • @yaseenkhan9012
    @yaseenkhan9012 3 ปีที่แล้ว

    sir why we create membership class
    we also create that in database same just like that

  • @muskanjaiswal4953
    @muskanjaiswal4953 3 ปีที่แล้ว

    Sir I have a Problem. In my browser, the navigation bar is not showing properly.

  • @yogeshwarsingh6768
    @yogeshwarsingh6768 3 ปีที่แล้ว

    If I need to write code in employeerepository for login what code i will write plz help me 🙏

  • @vinodpasi8021
    @vinodpasi8021 5 ปีที่แล้ว

    Do we need Id property in Membership class?

  • @Funkyoo4
    @Funkyoo4 6 ปีที่แล้ว

    sir role management kese kar sakte form authetication ka use kar uspe ek tutorial banawo i request you,,,

    • @WebGentle
      @WebGentle  6 ปีที่แล้ว

      Keep watching you will find everything in upcoming videos of this tutorial.

  • @naiemahmad427
    @naiemahmad427 5 ปีที่แล้ว +1

    Very good sir
    But
    Browser back button issue after logout.

    • @WebGentle
      @WebGentle  5 ปีที่แล้ว

      I would recommend to use no changing filter on your controller or set it globally.
      That must resolve back button issue.

  • @vidyanandanconsutancyservi8813
    @vidyanandanconsutancyservi8813 2 ปีที่แล้ว

    Sir, I am getting an error while adding view to action method login() in Account Controller -->
    There was an error running the selected code generator: unable to retrieve metadata for 'TestMVC2.Models.Membership'
    Pls Suggest

    • @sanketpatil5420
      @sanketpatil5420 ปีที่แล้ว

      Same here. Did you get the answer?

    • @MohammadImran-rn1vg
      @MohammadImran-rn1vg ปีที่แล้ว

      I too got the same error.
      But when I used User model instead of Membership model the error resolved.
      Don't the the reason.

  • @uzairalishah1080
    @uzairalishah1080 3 ปีที่แล้ว

    Lovely bro

  • @snehasish9954
    @snehasish9954 3 ปีที่แล้ว

    good one

  • @acegaming5317
    @acegaming5317 5 ปีที่แล้ว

    Can u help me its saying the server not found 3:50

    • @nitishkaushik786
      @nitishkaushik786 5 ปีที่แล้ว

      It means you have entered wrong server name.

    • @acegaming5317
      @acegaming5317 5 ปีที่แล้ว

      @@nitishkaushik786 tnxx for correcting

  • @HaseebAhmad-ig3fe
    @HaseebAhmad-ig3fe 4 ปีที่แล้ว

    how to validate input ..??? there is no model class ....

  • @akshaybhoite4656
    @akshaybhoite4656 3 ปีที่แล้ว

    Sir I have error
    CS0104 Membership' is an ambiguous reference between WebApplication 1.Models Membership and System.Web.Security.Membership

  • @TruthAndInspiration
    @TruthAndInspiration 3 ปีที่แล้ว

    sir when you create a view for an account u didn't get an error but when I'm doing this same work I got an error of Error :
    There was an error running the selected code generator:'unableto retrieve metadata for'' plz help me with this

    • @sanketpatil5420
      @sanketpatil5420 ปีที่แล้ว

      Same here. Did you get the answer?

  • @entertaingames7918
    @entertaingames7918 6 ปีที่แล้ว

    nice lecture but u don't use session [" "] ?? ya mvc main session use kernay ki zarurat nahi ?

    • @WebGentle
      @WebGentle  6 ปีที่แล้ว

      In MVC session is not required

    • @entertaingames7918
      @entertaingames7918 6 ปีที่แล้ว

      Ok ager zaruri nhi to for example ager user log out kerna bhool Jaye ya login kernay k bad kuch dair use na keray to session khudi expire hoga? Because it is security issue...

    • @WebGentle
      @WebGentle  6 ปีที่แล้ว +1

      Internally session hi use hota h. But hme apne aap directly use krne ki jrurt nhi hoti h. Because ye cookies ka use krta h to cookie k base p check hota h. Agr cookie expire ho jati h to fr se login krna pdta h.
      Aur aap session timeout bhi set kr skte ho web config m.

    • @entertaingames7918
      @entertaingames7918 6 ปีที่แล้ว

      Ok cookie will use ok thanks

  • @crazydrifter13
    @crazydrifter13 5 ปีที่แล้ว

    does this work fora webpage also? I am new and I wanna know if it works offline only or will it work if uploaded to site hosting service also?

    • @WebGentle
      @WebGentle  5 ปีที่แล้ว

      MVC is a web framework. Everything you will learn in this tutorial will work on your server.

  • @AnkitChoubey1992
    @AnkitChoubey1992 6 ปีที่แล้ว

    What if user has disabled the cookies in their browser? Will it be affected?

  • @JohnWaclawski
    @JohnWaclawski 3 ปีที่แล้ว +1

    Wish this was in English. Or I spoke your native language. I'm trying to follow along muted but it's difficult.