scarstens
5/5/2014 - 5:14 PM

Destroy PHP session

Destroy PHP session

session_unset();
session_destroy();
session_write_close();
setcookie(session_name(),'',0,'/');
session_regenerate_id(true);