olá pessoal estou editando um script e esta dando o seguinte erro
Fatal error: Call to undefined method Session::getState() in C:\Users\wsa\Desktop\USBWebserver v8.6\root\index.php on line 42
// objects
$session = new Session;
$logger = new Logger;
$db_mapper = new DbMapper;
$user = new User("", "", "", "", "", "", "");
42 if ($session->getState($session_state)){
43 $username = $session->getUsername();
44 $user = $db_mapper->getUser($username);
}