Use PHP Session to Display the Username on Header after Login

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

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

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

    Friends, I have created this video to show how you can display user information after login using PHP session. For example, if you want to display user name, store it in a session variable after successful login and then display it on the header. I hope this video will help you in developing your login system in PHP. If you find it useful, please give it a like and subscribe to my channel. Thank you - Sundar

  • @TGSprod
    @TGSprod 9 месяцев назад +1

    Bro i searched the whole youtube for that video.. my gosh thank you!

    • @Codehow2
      @Codehow2  9 месяцев назад +1

      Glad I could help

  • @muhammadshahzadshahzad8632
    @muhammadshahzadshahzad8632 6 месяцев назад

    Assalam alekum bhai ek issue araha h jb me site ko login ya logout krta hn mery admin pennel pe bhi same effect hota h

  • @sumeetsaurabh8124
    @sumeetsaurabh8124 8 месяцев назад

    If different users sign up and login, will it show different names for everyone?

  • @shyamradadiya7714
    @shyamradadiya7714 10 месяцев назад

    Bhai dashboard ka name kaise change kare har ek pannel ke liye

    • @Codehow2
      @Codehow2  9 месяцев назад

      If I understood your question correctly, you want to display different title for different dashboard. one option is to use a session variable as the title. just set the session value and include as header. For a framework it is easy as we can send data to the view.

    • @shyamradadiya7714
      @shyamradadiya7714 9 месяцев назад

      @@Codehow2 no buddy i want to show one name for all dashboard panels

  • @sumeetsaurabh8124
    @sumeetsaurabh8124 7 месяцев назад

    How to add signup and after login

    • @Codehow2
      @Codehow2  7 месяцев назад

      you can watch register and login video in this channel, it includes signup and login and displays the user name after login. watch this ruclips.net/video/e3pxmyLRw-Q/видео.html

    • @sumeetsaurabh8124
      @sumeetsaurabh8124 7 месяцев назад

      Thank you so much ❤

    • @sumeetsaurabh8124
      @sumeetsaurabh8124 7 месяцев назад

      Isi code me change kr ke kr dijiye sir.., usme incorrect password error aarha hai jabki sahi password hum daal rhe hai

  • @Toshiflakdawala
    @Toshiflakdawala 17 дней назад

    Source code?

    • @Codehow2
      @Codehow2  17 дней назад

      Hi, source code link is given in the video description. Just click codehow2.com/php/how-to-display-logged-in-user-name-using-php-session. It will show the same topic in the website, scroll down and will see download button. Thanks