Python Flask Login System With Sessions

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024
  • Buy the full source code of the application at Paypal in USD Currency here:
    procodestore.c...
    Subscribe for more Videos: / @codingshiksha
    Watch next -
    [Popular Videos on the Channel]
    [Login with Google Account using Javascript]
    • Login With Google Acco...
    [What is AJAX and How it Works | Short Tutorial for Beginners]
    • What is AJAX and How i...
    [Javascript Fetch Api Example]
    • Javascript Fetch Api E...
    [jsPDF Tutorial | PDF Library in Javascript]
    • jspdf tutorial
    [TH-cam Data API V3 App in 1 Hour]
    • TH-cam Data v3 API Ap...
    [AngularJS CRUD Application]
    • AngularJS CRUD Applica...
    [Uploading Files using Google Drive Api]
    • Google Drive API V3 - ...
    Recommended Playlist -
    [Build a CRUD Applicaiton in VUE and Firebase]
    • Build a CRUD Applicati...
    [MongoDB Tutorial for Absolute Beginners]
    • Video
    [Building a Playlist Search App using TH-cam Data Api v3]
    • Video
    [Secure Login System in PHP & MYSQL]
    • How to make a login/re...
    [Real Time Chatting App in Socket.io and Express]
    • socket.io chat app usi...
    Let’s connect:
    Facebook Page -

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

  • @physicsdiary2468
    @physicsdiary2468 3 ปีที่แล้ว +16

    See title of tab no.2 in his chrome browser

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

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

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

  • @adamjohnantonio
    @adamjohnantonio 3 ปีที่แล้ว +5

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

  • @dineshtiwari1764
    @dineshtiwari1764 4 ปีที่แล้ว +8

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

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

      hahahah

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

    Simple, informative and straight to point !

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

    This is really simple and easy to understand 👍👍

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

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

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

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

    Thank you so much!!

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

    I Like the video Gautam :)

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

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

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

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

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

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

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

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

    Phone --- desi 😂

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

    thank tyou

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

    😊😊

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

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

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