It might seem a bit of an obvious question but I couldn't really find the answer myself.
In logout scripts you see lots of different ways of destroying sessions. Sometimes they are even used together.
Why should I be using one method above the other?
// One
session_unset();
// Two
session_destroy();
// Three
$_SESSION = array();
I know what these functions do and what they are used for. What I don't understand is why there are multiple methods if they do the same thing anyways. I asked this question to get a better insight in this.
[enter link description here](http://stackoverflow.com/a/5698005/6468641) – Deepak Singh Jul 11 '16 at 07:23