PHP5 and MYSQL5 Web development technology -10 PHP Session management PHP5 and MYSQL5 Web Development technology -10 p_php Tutorial

Source: Internet
Author: User
Tags php session setcookie
Session management is an important part of web development, including session and cookie two technologies. 1, the cookie Works Setcookie () 2, the cookie application development can only read the domain single domain cannot exceed 20 cookies, each cookie file length limit 4k bytes, the browser stores up to 300 cookies 6 attributes: Name, Value, expires, path, domain, secure Save Form content Control access Authorization 3, write a generic cookie Class 4, Solution Cookie Access optimization to save a series of cookie data into an array detects whether the client supports first run attempt setting a A cookie, and then call the two-level domain name implementation Setcookie (name, value, expires, path, ' domain.com ', secure) cookie security cookie Restriction 5, Session concept 6, session with 7, Session app Create changes view current SessionID change expiration Session.cookie_lifetime destroy current session Sessions 8, the session encoding and decoding Session_encode () session_ Decode () 9, Save array 10 in session, save object in session 11, Session Access Optimization 12, shared session under multiple servers (important) 13, session security

http://www.bkjia.com/PHPjc/477689.html www.bkjia.com true http://www.bkjia.com/PHPjc/477689.html techarticle Session Management is an important part of web development, including session and cookie two technologies. 1. Cookie working principle Setcookie () 2, cookie application development can only read the domain single domain cannot super ...

  • Related Article

    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.