Skip to content

πŸ” PHP Auth System – Simple. Secure. Smart. A clean & secure user authentication system built with PHP + MySQL. βœ… Register πŸ‘€ | πŸ”‘ Login | πŸ”“ Logout | πŸ›‘οΈ Session Control | πŸ”’ Hashed Passwords | ⚠️ Error Handling Perfect for any web app needing reliable user access management! πŸš€

Notifications You must be signed in to change notification settings

Iqbolshoh/php-auth-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

42 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” PHP Authentication System

This repository contains a secure user authentication system built with PHP and MySQL. It includes essential features such as user registration, login, logout, and session management.

Banner


πŸ“Œ Features

βœ… User Registration – Create an account with secure password hashing.
βœ… User Login – Authenticate users with session management.
βœ… User Logout – Secure logout with session destruction.
βœ… Session Management – Keep users logged in securely.
βœ… Hashed Passwords – Uses password_hash() for better security.
βœ… Error Handling – Displays friendly error messages.


🎯 Usage

πŸ“ User Registration

  1. Navigate to Signup Page (signup/).
  2. Fill out the registration form.
  3. Submit the form.
  4. Upon successful registration, you will be redirected to the login page.

Signup

πŸ”‘ User Login

  1. Go to the Login Page (login/).
  2. Enter your credentials.
  3. Click Login to access the dashboard.

Login

  • πŸ–₯ Admin Login: iqbolshoh
  • πŸ‘€ User Login: user
  • πŸ”‘ Password: IQBOLSHOH

πŸ”“ User Logout

  1. Click the Logout button.
  2. Your session will be destroyed, and you'll be redirected to the login page.

πŸš€ Installation

Follow these steps to set up the project locally:

  1. Clone the repository:

    git clone https://github.com/iqbolshoh/php-auth-system.git
  2. Navigate to the project directory:

    cd php-auth-system
  3. Import the database:

    • Open phpMyAdmin or any MySQL management tool.
    • Create a new database (auth_system).
    • Import the database.sql file.
  4. Update database credentials in config.php:

    $servername = "localhost";
    $username = "root";
    $password = "";
    $dbname = "auth_system";

πŸ–₯ Technologies Used

HTML CSS Bootstrap JavaScript jQuery PHP MySQL

πŸ“œ License

This project is open-source and available under the MIT License.

🀝 Contributing

🎯 Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.

πŸ“¬ Connect with Me

πŸ’¬ I love meeting new people and discussing tech, business, and creative ideas. Let’s connect! You can reach me on these platforms:

About

πŸ” PHP Auth System – Simple. Secure. Smart. A clean & secure user authentication system built with PHP + MySQL. βœ… Register πŸ‘€ | πŸ”‘ Login | πŸ”“ Logout | πŸ›‘οΈ Session Control | πŸ”’ Hashed Passwords | ⚠️ Error Handling Perfect for any web app needing reliable user access management! πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published