Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Koken 0.8.4
  • ContentBox 1.5.2
  • jQPlayer 0.5.2
  • SPOILER ALERT! 0.0.2
  • jQuery Mask Plugin 0.9.0
  • Easing Slider 2.1.2
  • Btapp.js 0.2.0
  • WiiFlash 0.4.5
  • Breeze.js 1.3.3
  • TinyMCE Templates 3.0.2
  • Home > Scripts > Snippets

    Login and Logout with PHP and mySQL

    download button


    Downloads: 3,587  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.4/5)
    23 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Bjorge | More scripts
    px.sklar.com
    Freeware 

    Windows / Linux / BSD / Solaris
    N/A
    PHP
    June 25th, 2007, 08:24 GMT
    C: \ Snippets

     Read user reviews (0)  Refer to a friend  Subscribe

    Login and Logout with PHP and mySQL description

    Login and Logout with PHP and mySQL - When the user logs off, the (encrypted) password in the user-db is moved to a temproary field

    When the user logs off, the (encrypted) password in the user-db is moved to a temproary field, when he tries to enter the restricted page again and if he types the correct password, it will be moved back to the password field again.

    Just require the function.php3 in all the restricted pages, and call the check_auth(); function like it's done in login.php3.

    To create the user-table, you can use the syntax:
    CREATE TABLE users (username CHAR(20), encrpass CHAR(100), tmppass CHAR(100));

    Use this to insert a test-user: (aB14QxrLULc36 is the encrypted form of 'testpass')
    INSERT INTO users (username, encrpass, tmppass) VALUES ('testuser', 'aB14QxrLULc36', '');



    TAGS:

    Login Logout | php mysql | php login | Login | Logout | php

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM