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 ...