PHP how to destroy session id

The unset() function is used to free the specified session variable:

unset($_SESSION['id']);

or better catch

if(isset($_SESSION[id'])){
    unset($_SESSION['id']);
}

By Keenlio, April 14, 2014

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *


− 3 = four

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>