复制代码 代码如下: <?php class session { static $sessionObject; /* $_SESSION[‘user’] == 0 , don’t work . * == 1 , he is really user . */ private function __construct() { if(! ( isset($_SESSION[‘user’]) && $_SESSION[‘user’]==0 )) session_set_cookie_params(3600); session_start(); //Initialize14 }15 private