session and cookie functions. In order to keep the user information permanently, cookie is the most convenient means. Here I will explain the function and use of.
1. Okie (string name, string value, int expire, string path, string domain, int), all of the parameters are optional. The empty string can be used to represent the value / > attribute used to refer to which directory path that is sent to the server. The property domain: can limit the.
expire parameter to the transmission of cookie at the browser side: to specify the valid time for cookie, it is a standard Unix time tag.
can be obtained by time () or mktime () function, in seconds as a.
secure parameter: indicate whether this cookie is on the network via the encrypted protocol. Transfer.
Two: the notice of setting cookie when setting up
cookie in the same page is actually done in the order from back to forward. If you want to delete a cookie and write a cookie first, you must write a write statement, then write a delete statement. No error.
Three: setcookie