Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Destroy PHP session
session_unset();
session_destroy();
session_write_close();
setcookie(session_name(),'',0,'/');
session_regenerate_id(true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment