How can I unset the session of a specific user?
<p>I have a session like this <code>$_SESSION['login']</code> and when it is equal with <code>1</code>, it means the use is logged into my website:</p>

<pre><code>if ( $_SESSION['login'] == 1 ) {
    // You are logged
} else {
    // login/register
}
</code></pre>

<p>Also I have another session which contains user's id. Something like this:</p>

<pre><code>echo $_SESSION["Id"]; 
/* It is containing the user's id (an integer number).
   Something like: 234124
*/
</code></pre>

<p>Now I want to unset <code>$_SESSION['login']</code> for the user who has a specific id. For example I want to <code>unset($_SESSION['login'])</code> for <code>$_SESSION["Id"] = 234124</code>. How can I do that?</p>

<hr>

<p><strong>Edit:</strong> All I'm trying to do: When an user changes his password, I remove all his cookies from <code>cookies</code> table to sign him out from all his other devices. Also I want to remove his session.</p>