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
229 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 108

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now