The cookie can be retained for a long time locally, but cannot be retained locally when uploaded to the HiChina host. cannot be uploaded to the HiChina host. PHPcode $ expire = time () + 360000000; setcookie ('Member [userID] ', $ userid, $ expire); setcookie (the cookie can be retained for a long time locally. it cannot be uploaded to a HiChina host.
The cookie can be retained for a long time locally, but cannot be uploaded to the HiChina host.
PHP code
$ Expire = time () + 360000000; setcookie ('Member [userID] ', $ userid, $ expire); setcookie ('Member [username]', $ username, $ expire); setcookie ('Member [password] ', $ password, $ expire); setcookie ('Member [groupName]', urlencode ($ groupName), $ expire ); setcookie ('Member [groupID] ', $ groupID, $ expire );
Judgment statement
PHP code
If (isset ($ _ COOKIE ['member'])
------ Solution --------------------
1. write the content in the cookie to the database or file.
2. store the content in the cookie into the session