Advance PHP | Start Session - video #52

Опубликовано: 06 Июнь 2026
на канале: OldManPHP
15
1

PHP session is a way to store information (in variables) to be used across multiple pages.

Unlike a cookie - I showed you how to use them on the last video - the information is not stored on the users computer.

When you work with an application - you open it - you do some changes, and then you close it. Right?

This is much like a Session. The computer knows who you are. It knows when you start the application and when the application ends.

Now, on the internet there is one problem. The web server does not know who you are or what you do, because the HTTP address doesn't maintain state. No website that you request and get maintains state.

So the PHP Session variable solve this problem by storing user information to be used across multiple pages.

By default, Session variables last until the user closes the browser.

So, Session variables hold information about one single user, and are available to all pages in one application.

A session is started when you add “session_start()” function to the beginning of your script or HTML file.

Here are the source codes for this project in php and txt.

https://convertowordpress.com/chkCRUD...
https://convertowordpress.com/chkCRUD...

Here, I am providing you with a PDF document. This document has all of the examples with explanations.

https://convertowordpress.com/practic...

Check out the PHP manual that is available online -
https://www.php.net/docs.php

If you want a developer to create your web design project.

Visit: https://convertowordpress.com