PHP Tutorials: Register & Login: User login (Part 3)

Part of the ‘Register & Login’ Project from PHP Academy. This tutorials walks you through how to process a username and password based login against details found in a database, set a session, and process a logout function.

Duration : 0:8:44


Technorati Tags: , , , , , , , , , , , , , , , ,

15 Responses to “PHP Tutorials: Register & Login: User login (Part 3)”

  • diythings says:

    um how do i make a …
    um how do i make a register page?

  • buntus00 says:

    Congratulations, …
    Congratulations, Alex on presenting really excellent videos. This has really been helpful to me. I would be lost just following some book. Full marks. I followed along, and apart from a few frustrating syntax errors, everything worked as it should. Great stuff, man!

  • viktorvettu says:

    this were really …
    this were really great! everything worked as it should and you’ve helped me a lot! the “session_start();”-code were the code I’ve been looking for, for a really long time xD thanks, once again :)

  • ayjay67 says:

    Hahaha Alex…’I'm …
    Hahaha Alex…’I'm going to want to die….” ha ha ha so FUNNY!. Thank for your tutorial man.

  • beckmankc says:

    After I log out and …
    After I log out and use ‘back’ in my web browser until I reach the login.php page, I am asked to resend my information. At this point have access to the member.php page again without logging back in.
    Does anybody else get this security issue?
    If it matters I’m using Firefox 3.0 on Mac OS 10.4

  • Angyeutube says:

    Why after logged …
    Why after logged out and accessing to member.php I get an undefined index error ?

  • 644PRB says:

    I think I’m …
    I think I’m starting to understand the answer to my question better but I still want to know how to use regular HTML content inside regular HTMl tags in a PHP login page. For example if I have a page of images in text can I make it so users who aren’t logged in can’t see it?

  • 644PRB says:

    Does anyone know …
    Does anyone know whey it gives me the error:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/s/d/u/sdupar/html/login2/login.php:8) in /home/content/s/d/u/sdupar/html/login2/login.php on line 9
    Invalid username or password

    when I have the standard HTML tags (html, body, head) on my page? Thanks!

  • diasick812 says:

    i had this problem …
    i had this problem to…. to people that gets this error make sure there is no white space before the opening php tag….i been looking at your videos phpacademy good stuff

  • TyByKilLeR says:

    Parse error: syntax …
    Parse error: syntax error, unexpected T_ECHO in /home/europlay/public_html/demo/login.php on line 31 This error happens after I logged:(( help me please:| tibbi_y is my id, add me in your messenger list[-o<

  • jideszone says:

    Great Tutorial, i …
    Great Tutorial, i love it…

  • omanoman98 says:

    This tutorial …
    This tutorial showed me what I always wanted to know!
    I appreciate your help Alex! Many thanks!

  • stevenyap2143 says:

    may i know how to …
    may i know how to create a direct link to a page instead of creating a word link after the user successfully logged in?

  • gibrangibran says:

    make sure you …
    make sure you remove any white space or output by your file before starting the session!!

  • filapente says:

    when i get to the …
    when i get to the session part i get these WARNING

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home2/paceente/public_html/test/login.php:9) in /home2/paceente/public_html/test/login.php on line 11

    what can i do?

Leave a Reply