Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 748927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:22:35+00:00 2026-05-14T14:22:35+00:00

I am one of the developers at PassPad , a secure password generator and

  • 0

I am one of the developers at PassPad, a secure password generator and username storage system. We’re still working on it, but I have a few questions on the best way to implement a secure login/out system.

Right now, what we plan on doing is to have the login system save a cookie with the username and a session key, and that’s all that serves as authentication. The server verifies the two to match. Upon login/out a new key is created.

This is a security-related webapp and while we don’t actually store any information that might make the user queasy, because it is security-oriented it makes it a necessity for us to at least appear secure in a way that the user would be happy with.

Is there a better way to implement a login/out system in PHP? Preferably it won’t take too much coding time or server resources. Is there anything else I need to implement, like brute-force protection, etc? How would I go about that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T14:22:35+00:00Added an answer on May 14, 2026 at 2:22 pm

    Make sure you have read the OWASP top 10 for 2010, especally A3: Broken Authentication and session management. This is important because you have already violated its requirements for https. Also make sure to read about CSRF, forcing people to login or logoff from your service is a vulnerability. Turn off directory listing in your .htaccess: http://passpad.org/actions/

    I also recommend running a Web Application Firewall, especially if you are a security web app. mod_security is free and will stop a lot of attacks. Also make sure to test your application for vulnerabilities by using wapiti(open source) or acunetix($$$), but make sure you test your app with your WAF disabled.

    In terms of brute force protection I really like gmail’s approach. Don’t prompt them with a captcha until they obtain enough “heat”. Heat can be accumulated by performing bad actions against your system. Heat is assigned to an ip address, not a session. For instance if they sign up for 2 user accounts, you might want to prompt them with a capthca for the 3rd. If you have 3 failed login attempts, you should prompt them. If they solve the captcha, you could choose to “cool” them off by lowering their heat value or setting it to zero. Use reCpathca its by far the best.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working in a project with developers working on three sites. One
I have a C++ library which I deliver to other developers. One of them
One of my developers working on a trigger-based logging facility in SQL Server 2008
One of our developers used this call: TzSpecificLocalTimeToSystemTime() but unfortunately we cannot keep it
One of our developers is continually writing code and putting it into version control
One of my developers has started using RegexBuddy for help in interpreting legacy code,
So I got this question from one of the developers in my team: What
My developers are waging a civil war. In one camp, they've embraced Hibernate and
A lot of developers say only throw exceptions in truly exceptional circumstances. One of
On a SQL Server 2005 database, one of our remote developers just checked in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.