<?php session_start(); if (!isset($_SESSION['id_client'])) { header('Location: index.php?error=1'); } ?>