Python Flask Login System With Sessions

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 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

  • @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?

  • @williamwoo1437
    @williamwoo1437 4 роки тому +4

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

  • @deeprony7
    @deeprony7 4 роки тому +3

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

  • @atthariqinsanulhaq
    @atthariqinsanulhaq Рік тому

    This is really simple and easy to understand 👍👍

  • @ezekielebenezer6269
    @ezekielebenezer6269 Рік тому

    Simple, informative and straight to point !

  • @dineshtiwari1764
    @dineshtiwari1764 4 роки тому +8

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

    • @maxgadd
      @maxgadd 6 місяців тому

      hahahah

  • @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 2 роки тому +1

    God Bless my brother 🙏🙏🙏

    • @CodingShiksha
      @CodingShiksha  Рік тому

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

  • @RohitKumar-dg2qt
    @RohitKumar-dg2qt 2 роки тому +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

  • @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

  • @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?

  • @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?

  • @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/

  • @reemasave4605
    @reemasave4605 3 роки тому +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  3 роки тому +1

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

    • @reemasave4605
      @reemasave4605 3 роки тому

      @@CodingShiksha 👍

  • @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 :)

  • @TheBotEmpire
    @TheBotEmpire 4 роки тому +1

    I Like the video Gautam :)

  • @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

  • @abhi_kr_sah
    @abhi_kr_sah 3 роки тому +2

    Thank you so much!!

  • @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

  • @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

  • @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/

  • @hariprapan1526
    @hariprapan1526 Рік тому +1

    😊😊

    • @CodingShiksha
      @CodingShiksha  Рік тому +1

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

  • @cedricmanagement6187
    @cedricmanagement6187 3 роки тому

    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/

  • @mdkamruzzamanleion9950
    @mdkamruzzamanleion9950 Рік тому +1

    Phone --- desi 😂

  • @astorgadexterpelaez3502
    @astorgadexterpelaez3502 Рік тому

    thank tyou

  • @bloomerboi21
    @bloomerboi21 3 роки тому

    Webcam is annoying dude