Skip to content

A PHP login system with 'user' as the default username and '1234' as the default password, using sessions for authentication.

Notifications You must be signed in to change notification settings

er-hiba/Simple-PHP-Login-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This repository contains a simple PHP login system that demonstrates the use of sessions for authentication. The system includes three main components:
♡   Login Page : Users can enter their username and password to log in. The system checks the credentials against a hardcoded username ("user") and password ("1234") for simplicity.
♡   Session Page : A protected page that can only be accessed by logged-in users. If a user tries to access this page without logging in, they are redirected to the login page.
♡   Logout Page : Allows users to log out by destroying the session and redirecting them to the login page.

Features:

♡   Uses PHP sessions for user authentication.
♡   Minimalistic design with Bootstrap for styling.
♡   Secure password storage with password hashing (not implemented in this example for simplicity).
♡   Basic error handling for incorrect login credentials.

Screenshots

About

A PHP login system with 'user' as the default username and '1234' as the default password, using sessions for authentication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages