Learning purpose: Society of sessions
There are many ways to use, and the most used is to transfer variables between the online page. Start in the page We want session_start (); open the session;
Then you can use the session variable, for example, you want to assign a value: $ _ session ['item'] = "item1"; to get the value is $ item1 = $ _ session ['item'] ;. very simple. Here we may use some functions, such as judgment is empty, you can write: Empty ($ _ session ['inum']) Returns true or false.
Let's take a look at us to see if a login program is correct.
The login form is like this: login.php