(Coolman) user status management (sessionsupport) is a long-awaited new function in PHP4.0. In the PHP3.0 era, programmers must use the writing libraries written by others to implement status management...
(Coolman)
Session support is a new feature in PHP 4.0 that has long been expected. In the PHP 3.0 era, programmers must use the function library written by others to implement the state management function, or simply give up this function. The lack of status management is actually one of the most disappointing parts of PHP 3.0. However, the status has changed. since the early beta version of PHP 4.0, user status management has become one of the built-in functions of PHP.
You can use the status management function to manage all the variables related to a user's website from the beginning to the end of the website. (these variables can be used as long as the user has not left the website, does not cause data to disappear because the user leaves a single page), instead of storing many cookies, hiding form fields, or even storing these variables in the database, this causes a large load on the database server.
Once you activate status management on a page of your website, the PHP engine starts to record the user status (if the system hasn't started recording the visitor status for this user ), or you can continue recording the status of a previously activated user. To activate the PHP state management function, you can use the following syntax:
Session_start ();
Link to this article:
Add to favorites ^ please keep the tutorial address.