Miscellaneous
  Home arrow Miscellaneous arrow Page 6 - Writing a Basic Authentication System in PHP
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  
Forums Sitemap 
Download TestComplete 
JMSL Numerical Library 
IBM® developerWorks
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: 5 stars5 stars5 stars5 stars5 stars / 10
    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 - Conclusion


    (Page 6 of 6 )

    Authentication allows various resources to be published on the Internet but viewable only by those who can present the appropriate credentials. With the information presented in this tutorial you should be able to construct your own authentication system.

    You might even want to organize your code in a set of functions or a class; the code can be written to be rather self-sufficient and then inserted in the top of each resource with include or require.

    About The Author

    Timothy Boronczyk lives in Syracuse, NY, where he works as an E-Services Coordinator for a local credit union. He has a background in elementary education, over 5 years experience in web design and has written tutorials on web design, PHP, Ruby, XML and various other topics. His hobbies include photography and composing music.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · 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

    - Stopping CSRF Attacks in Your PHP Applicatio...
    - Quick and Dirty AJAX Tutorial
    - Flickr Puzzle Mashup
    - The PAVISE of Security
    - Creating a CAPTCHA with PHP
    - Sending SMS Thru HTTP
    - The Postal Fix - Part 2
    - Adding Mail with Exim
    - The Postal Fix - Part 1
    - Create Your Own Custom API
    - Adding Drop Shadows with PHP
    - Writing a Basic Authentication System in PHP
    - Overlapping Images with GD
    - Using Sockets in PHP
    - Dynamic CSS with PHP





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT