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
241 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
  • 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 200 total points
ID: 21844282
0
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 300 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

770 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