ok so I have the following code that echos some session variables that I set already.(They echo like intended.)
(index.php)
<?php session_start();?>
Username: <?php echo $_SESSION['username']; ?><br>
Password(encrypted): <?php echo $_SESSION['password']; ?><br>
ThemeColor: <?php echo $_SESSION['themecolor']; ?><br>
And I have this code which I try to end the session with, but when I run the code above, the variables still echo out, so the session is still active
(logout.php)
<?php
session_start();
session_unset();
session_destroy();
?>
Can you tell me what I'm doing wrong?