c.php'de session açın, x.php'de sessionu kontrol edin yoksa header ile girişi engelleyin varsa girdirin, bu kadar.