?
Solved

What is a PHP/web-based (cookie) authentication system/set of scripts that can be integrated into an existing website?

Posted on 2008-06-22
4
Medium Priority
?
270 Views
Last Modified: 2013-12-25
I'm looking for a safe, pre-built cookie based (instead of session based) authentication system that I can make use of to password protect some websites for simple authentication.

Cookie based is preferred but it can be anything. Basic authentication systems, where users login, and reset passwords, etc. have been created and recreated a 1000 times over and I don't want to do the same - I just want to use something that works.

Something that would allow me to copy a couple lines of PHP code to the top of a PHP file and by doing that enforce security on that file.
 
Any suggestions?

0
Comment
Question by:ctangent
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 21844258
better try to use SESSION... cookies are less security than sessions way.,

ref.http://www.sitepoint.com/article/users-php-sessions-mysql
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 21844277
0
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 800 total points
ID: 21844282
0
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 1200 total points
ID: 21844818
ctangent:

Buy this book:http://www.sitepoint.com/books/phpmysql1/

I followed its advice - straightforward and easy to implement.  Now I have a pre-canned and reusable set of scripts.  Register, Login, Logout, Remember-me, Change Password, etc., including broadcast email are all supported.  When I want to protect a script I add one line of code, either of those below.

Also, consider OpenID
http://en.wikipedia.org/wiki/OpenID

HTH, ~Ray
access_control();
 
admin_access_control();

Open in new window

0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question