Heim >Backend-Entwicklung >PHP-Tutorial > cookie本地可以保留很久,下传到万网主机不行
cookie本地可以保留很久,上传到万网主机不行
cookie本地可以保留很久,上传到万网主机不行
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> $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);
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->if(isset($_COOKIE['member']))