8
We need to use to track user information Session and Cookie, such as user login authentication, user browsing history record store shopping cart data, user session valid time limit. Today we come to understand how to operate under PHP is the Session and Cookie.
PHP's $ _SESSION current user data can be stored, when the user visits WEB site, PHP will give users access to each create a session ID, the ID is a unique ID, saved on the client, and the user's session data is saved to the the service side, PHP can be stored for each different user information when the session expires, the user session information will be invalidated.