false, 'error' => 'Method not allowed']); exit(); } $success = SessionManager::renewSession(); echo json_encode([ 'success' => $success, 'time_remaining' => SessionManager::getTimeRemaining() ]);