Python Flask Login System With Sessions

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024

Комментарии • 49

  • @sandeepkumar-tv9lz
    @sandeepkumar-tv9lz 4 года назад +6

    let me tell you Sir....There are whole lots of video regarding flask in the youtube community...but your's are the best....specially for the one who is beginner ....thanks you very much.......And i have lots of thing from your short and crisp videos

  • @physicsdiary2468
    @physicsdiary2468 3 года назад +16

    See title of tab no.2 in his chrome browser

  • @dineshtiwari1764
    @dineshtiwari1764 4 года назад +8

    Bruh , You have got that phone sex desi tab left open lmaoo

    • @maxgadd
      @maxgadd 4 месяца назад

      hahahah

  • @williamwoo1437
    @williamwoo1437 4 года назад +4

    Very informative. Thank you!
    A follow up video involving database will be great

  • @atthariqinsanulhaq
    @atthariqinsanulhaq Год назад

    This is really simple and easy to understand 👍👍

  • @adamjohnantonio
    @adamjohnantonio 4 года назад +5

    Why not just check for the user session variable in the protected route - why do you need to store it in g first?

  • @ezekielebenezer6269
    @ezekielebenezer6269 Год назад

    Simple, informative and straight to point !

  • @MrLefteris3000
    @MrLefteris3000 4 года назад +3

    Hello! Nice video i am trying to do a similar thing but i want to have a signup too. The problem is that i want to do this storing the users in a mongodb.
    Do you have any idea what I should do different from your video?

  • @deeprony7
    @deeprony7 4 года назад +3

    How do you get the user to logout from all open tabs when they have logged out from one?

  • @AeGuerra
    @AeGuerra 2 года назад

    You have no idea, this video saved me, thank you so muchhhh

    • @CodingShiksha
      @CodingShiksha  2 года назад

      Thanks for asking please join facebook group of coding shiksha to ask questions: facebook.com/groups/544305447024848

  • @itsyapro7737
    @itsyapro7737 Год назад +1

    God Bless my brother 🙏🙏🙏

    • @CodingShiksha
      @CodingShiksha  Год назад

      Hi Join the official discord server to resolve doubts here: discord.gg/cRnjhk6nzW

  • @deekshakaushal9538
    @deekshakaushal9538 2 года назад +1

    awesome... your code really helped me

    • @CodingShiksha
      @CodingShiksha  2 года назад +1

      deeksha please invite me on my hangouts id geekygautam1997@gmail.com i am online for chatting about programming

  • @lorenzoquaglieri6265
    @lorenzoquaglieri6265 2 года назад +1

    nice video and nice VsCode theme, whats the name of it? thanks

    • @CodingShiksha
      @CodingShiksha  Год назад

      Hi Join the official discord server to resolve doubts here: discord.gg/cRnjhk6nzW

  • @RohitKumar-dg2qt
    @RohitKumar-dg2qt Год назад +1

    practiced this. now on registration page i wanted to add link to login page if user is already registered. i used url_for(''/') just like any other route. this is creating error. how to do it? want route "/ " for login template if user is not set in session else it should show normal homepage template. any directions?

    • @CodingShiksha
      @CodingShiksha  Год назад

      Hi Join the official discord server to resolve doubts here: discord.gg/cRnjhk6nzW

  • @SergioMiranda1978
    @SergioMiranda1978 4 года назад +3

    HI, how I validate on every page if the user is logged, i mean the session is active?

    • @zdrux
      @zdrux 4 года назад

      {% if current_user.is_authenticated %}

    • @shrutimishra4684
      @shrutimishra4684 4 года назад

      were you able to validate on every page? if yes, can u please tell how?

  • @TheBotEmpire
    @TheBotEmpire 4 года назад +1

    I Like the video Gautam :)

  • @abhi_kr_sah
    @abhi_kr_sah 3 года назад +2

    Thank you so much!!

  • @qazwsxedc123411
    @qazwsxedc123411 3 года назад

    Hello, when I apply your teaching to my web application, there will be an error like werkzeug.routing.BuildError: Could not build url for endpoint, what kind of problem do you have?

    • @CodingShiksha
      @CodingShiksha  2 года назад

      Hi thanks for your comment please join the official facebook group of coding shiksha to ask doubts
      facebook.com/groups/544305447024848/

  • @SunnySharma-dc2nh
    @SunnySharma-dc2nh 3 года назад +2

    session still exists even after logging out, even you go back, the protected page still exists after logging out, please let me know how to end the session completely after every logout.

    • @urielmilo3681
      @urielmilo3681 3 года назад

      Not sure if you guys gives a damn but if you guys are bored like me during the covid times then you can watch pretty much all the latest movies and series on InstaFlixxer. Been watching with my girlfriend during the lockdown :)

    • @fernandojoseph352
      @fernandojoseph352 3 года назад

      @Uriel Milo Yea, been using InstaFlixxer for months myself :)

  • @zainkhan7080
    @zainkhan7080 3 года назад +4

    RuntimeError: The session is unavailable because no secret key was set. Set the secret_key on the application to something unique and secret.

    • @abhi_kr_sah
      @abhi_kr_sah 3 года назад

      app.secret_key=os.urandom(24) pause at 7:11 line no 7

  • @reemasave4605
    @reemasave4605 2 года назад +1

    What if after clicking on logout button, we hit the browser back button, will it take me back to the protected page?

    • @CodingShiksha
      @CodingShiksha  2 года назад +1

      reema please invite me on my hangouts id geekygautam1997@gmail.com i am online

    • @reemasave4605
      @reemasave4605 2 года назад

      @@CodingShiksha 👍

  • @dukescompany7855
    @dukescompany7855 2 года назад +1

    Pratical and simple

    • @CodingShiksha
      @CodingShiksha  2 года назад

      Hi thanks for your comment please join the official facebook group of coding shiksha to ask doubts
      facebook.com/groups/544305447024848/

  • @NUMERICINFOSYS
    @NUMERICINFOSYS 4 года назад +1

    My form data is not showing can you help me

    • @NUMERICINFOSYS
      @NUMERICINFOSYS 4 года назад +1

      Thanks it's my mistake and your video is very helpful ..

    • @CodingShiksha
      @CodingShiksha  4 года назад

      Radha you can contact me at my hangouts id geekygautam1997@gmail.com I am online for your doubts

  • @AnikeshSinha
    @AnikeshSinha 4 года назад +2

    Hello,
    How to differentiate from User and Admin login?
    I am using Flask.
    But when i am logging in from User and writing /somesecretpage which only Admin is allowed to see, it is getting routed. How to approach the problem?
    Thanks in advance

    • @ayubomaraden867
      @ayubomaraden867 4 года назад

      add a condition on the seomsecretpage route that says if the user is not admin redirect them to somepage

  • @hariprapan1526
    @hariprapan1526 Год назад +1

    😊😊

    • @CodingShiksha
      @CodingShiksha  Год назад +1

      Hi Join the official discord server to resolve doubts here: discord.gg/cRnjhk6nzW

  • @mdkamruzzamanleion9950
    @mdkamruzzamanleion9950 Год назад +1

    Phone --- desi 😂

  • @astorgadexterpelaez3502
    @astorgadexterpelaez3502 Год назад

    thank tyou

  • @cedricmanagement6187
    @cedricmanagement6187 2 года назад

    how to set a password and username?

    • @CodingShiksha
      @CodingShiksha  2 года назад

      Hi thanks for your comment please join the official facebook group of coding shiksha to ask doubts
      facebook.com/groups/544305447024848/

  • @bloomerboi21
    @bloomerboi21 3 года назад

    Webcam is annoying dude