PHP Session Control

Source: Internet
Author: User

1<?PHP2 Session_Start();//Open Session First3 //Store session information4 $_session["UID"]= "123";5 Echo $_session["UID"];6 //Session7 //1. Storage on the server8 //2. Can store any type of data9 //3. There is a default expiration time of 15 minutesTen //4. Each login will save one copy One //session Usage: A //1. Can be used to pass values between pages - //2. Can record the status of the logged-in person - //3. To prevent users from skipping logins the //cookie16//1.stored in the client -2.only strings can be stored -3.default permanent, you can set the expiration time +4.each login will save one copy
Cookie Storage Information
Setcookie ("UID", $uid);
-?>

PHP Session Control

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.