function session_destroy() ends all persistent data corresponding to the current user session. : session_destroy « Cookie Session « PHP






function session_destroy() ends all persistent data corresponding to the current user session.

 
Its syntax is: boolean session_destroy()

<?
session_start();
// do some session stuff
session_destroy();
?>
  
  








Related examples in the same category

1.Destroying a session
2.Ending a Session