So, I created this login page that works with a session. Now I have this problem whenever I hit the f5 button to refresh the page I always get a pop up that asks if I am sure that I want to resend the data ( of the session I assume ) again. How can I prevent this pop up from happening?
This is the session:
<?php
session_start();
if ( isset($_POST['user']) || isset($_POST['pass'])) {
    $_SESSION['user'] = $_POST['user'];
    $_SESSION['pass'] = $_POST['pass'];
} else { 
   echo "username or password not specified";
}
    $DB_user = $_SESSION['user'];
    $DB_pass = $_SESSION['pass'];
?>
 
     
    