Please can someone advice

Start session of every page may be you can create common file for that and add below code for restriction.

<?php
if(!isset($_SESSION['id'])){
    header("location:logout.php");
    exit;
}
?>

You deserve to be cited.

Cited for what?

commented: cite: praise someone. "They has been cited many times for their contributions." +0

Oh. I thought you meant in the context of receiving a citation. E.g. “He was cited by the police for parking illegally.”

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.