🔐 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.

📌 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
- Navigate to Signup Page (
signup/).
- Fill out the registration form.
- Submit the form.
- Upon successful registration, you will be redirected to the login page.

🔑 User Login
- Go to the Login Page (
login/).
- Enter your credentials.
- Click Login to access the dashboard.

- 🖥 Admin Login:
iqbolshoh
- 👤 User Login:
user
- 🔑 Password:
IQBOLSHOH
🔓 User Logout
- Click the Logout button.
- Your session will be destroyed, and you’ll be redirected to the login page.
🚀 Installation
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/iqbolshoh/php-auth-system.git
-
Navigate to the project directory:
cd php-auth-system
-
Import the database:
- Open phpMyAdmin or any MySQL management tool.
- Create a new database (
auth_system).
- Import the
database.sql file.
-
Update database credentials in config.php:
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "auth_system";
🖥 Technologies Used

📜 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:
评论