Hi, When i update my info the session is destroyed if i remove destroy session then the mesage does not vanish on refresh : When i update my info the session is destroyed if i remove destroy 
    session 
    then the mesage does not vanish on refresh   
    <?php if(isset($_SESSION['loginfail']))
    {$msg = $_SESSION['loginfail'];  ?>  
    <div class="alert alert-success alert-dismissable">
    <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;
    </a>
    <?php echo $msg; ?>
    </div>
    <?php } 
    session_unset();
    session_destroy();`enter code here`
    ?>
    