2. The validity time of the cookie, which can be used to record the login status.
first verifies the session. If there is no session, then verifies the above admin_id and admin_pass in the cookie. //There cannot be an output statement before jumping to the frameset, so delete the statement in time after debugging it in the code. 3. Valid path of cookie. The default is the root directory. 4. Cookie sharing The fifth parameter ‘jbxue.com’ means that the information in the cookie can be accessed at he.jbxue.com yong.jbxue.com jia.jbxue.com. Notes: setCookie() only sets cookie information after a request. There cannot be any output before setCookie. Same as header. Response headers must be sent before the response body. Remember: there can be no output before the cookie. |