i want the best secured php class to provide log in feature in my web with access protection and session timeout , plz help me

Recommended Answers

If you want to do it correctly its not going to be one class. It's probably going to be upwards of 4 or 5 classes. The database connection, the database interaction, the request handler, the authentication, the user, and probably a user class extending the base user for every level …

Jump to Post

All 2 Replies

If you want to do it correctly its not going to be one class. It's probably going to be upwards of 4 or 5 classes. The database connection, the database interaction, the request handler, the authentication, the user, and probably a user class extending the base user for every level of privilege. Here's a start since you haven't actually posted any of your code yet.

class User
{
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.