$dbLink = new mysqli("localhost", "root", "root", "test"); $sessionTable = "sessioninfo"; $handler = new MySessionHandler($dbLink, $sessionTable); session_set_save_handler($handler); session_start(); $_SESSION['name'] = "test"; echo $_SESSION["name"]; //session_destroy();
您可能感兴趣的文章: