here is my code in my logout.php. 

```
session_start();
    session_unset();
    session_destroy();
    header("Location: ../index.php");  

```

this code works properly when i run it in my localhost, but when i upload it into my server it didn't work, and makes me unable logout from my website.
please someone help me thru' this thank you.