0% found this document useful (0 votes)
63 views6 pages

PHP Login System with Sessions Tutorial

The document describes the system flow and files used for a basic PHP login system. It includes a flow chart showing the process from login.php to authenticator.php to either login-successful.php or login-failed.html. It also includes a table describing each file, including login.php for the login interface, sessionHandler.php to handle sessions, authenticator.php to verify users, and login-successful.php and logout.php to complete the login and logout processes.

Uploaded by

Sarvess Peace
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views6 pages

PHP Login System with Sessions Tutorial

The document describes the system flow and files used for a basic PHP login system. It includes a flow chart showing the process from login.php to authenticator.php to either login-successful.php or login-failed.html. It also includes a table describing each file, including login.php for the login interface, sessionHandler.php to handle sessions, authenticator.php to verify users, and login-successful.php and logout.php to complete the login and logout processes.

Uploaded by

Sarvess Peace
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PHP Tutorial – Login using Session

System flow chart

[Link] [Link]

No

username &
password
provided?

Yes

[Link]

Valid
username &
[Link] No
Password?

status=false
Yes

[Link]

[Link]

[Link]
Figure 1: Login system structure

Table 1: Description of each web page file

File Name Description


[Link] Login interface.
[Link] To handle login information and create a session for that user.
[Link] To verify user identity in accessing this website. Include this file in every
protected page to avoid unauthorized user enter.
[Link] To display protected web page if user is valid. If you enter directly to this
page, you will be checked by the authenticator, and then redirect to login-
[Link].
[Link] To display error message if user is invalid.
[Link] To logout from the website and destroy the self identity.
Creating ‘profile’ table using ‘ngchoonching’ database

Insert dummy data


Creating Server Side Scripting, PHP

1. Creating index file named as “[Link]”


2. Creating database connection scripting named as “[Link]”
3. Creating insert page interface named as “[Link]”

4. Creating insert query scripting named as “[Link]”

5. Creating display page named as “[Link]”


6. Creating update query scripting named as “[Link]

You might also like