Miscellaneous
  Home arrow Miscellaneous arrow Writing a Basic Authentication System ...
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Download TestComplete 
Forums Sitemap 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MISCELLANEOUS

Writing a Basic Authentication System in PHP
By: bluephoenix
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 12
    2004-12-24

    Table of Contents:
  • Writing a Basic Authentication System in PHP
  • Storing Passwords
  • Getting the User Login
  • Processing the Login
  • Persisting the Authentication
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Writing a Basic Authentication System in PHP


    (Page 1 of 6 )

    An authentication system allows certain online material to be accessible only to a select few. This tutorial illustrates the basic construction of an authentication system using PHP.

    Occasionally a site administrator will want to make certain material available online, but also have it accessible to only a select few. Some examples of this might be student records, personalized information, email and even personal photo albums.

    Of course there are many ways to restrict access to information ranging from web server configurations to third party programs. In this tutorial, we'll take a look at the basic theory behind a user authentication system using PHP.

    More Miscellaneous Articles
    More By bluephoenix


       · 1. $user = $_POST["userid"];NEVER trust a user input, and do...
       · Excellent tutorial Timothy!I was planning on writing an authentication system...
       · Excellent tutorial Timothy!I was planning on writing an authentication system...
       · I agree with your point, [below], but could you provide an example, I am not a...
       · Certainly never trust user input... and remember SQL queries are vulnerable to...
       · You're welcome :)-Tim
       · My comments has no direct relation with this usefull tutorial's contents. It is a...
       · If magic_quote_gpc is off this code is vulnurable to sql injections.See...
       · ...>You'll notice I didn't get into those topics as it's a tutorial just...
       · quote:Re: Some Sad mistakes posted by bluephoenixDecember 28, 2004, 4:46...
       · 
       · Zulan, I understand the necessity for security as well as your concerns. Perhaps...
       · Just to clarify to anyone using this tutorial, it's brilliant, but beware!If you...
       · Great tutorial,but as a beginner I'm confused. How exactly would we insert sha1...
       · Great tutorial,but as a beginner I'm confused. How exactly would we insert sha1...
       · Great tutorial,but as a beginner I'm confused. How exactly would we insert sha1...
       · Thanks a bunch. The mistakes made are irrelevant; don't have to shove the whole...
     

    MISCELLANEOUS ARTICLES

    - Using PHP to Stream MP3 Files and Prevent Il...
    - 10 Must Have Firefox Improvements
    - All About OpenOffice 3.0
    - Shell Script Writing
    - Loops in the UNIX Shell
    - The Test in the UNIX Shell
    - Data Streams and the UNIX Shell
    - Control Mechanisms of the UNIX Shell
    - Variables Within the UNIX Shell
    - The Shell and UNIX
    - In Detail: UNIX File Systems
    - Rights Management in UNIX
    - UNIX File Systems
    - The Terminal in UNIX
    - Operating Systems and UNIX





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek