how to start and end a session in php code example Example: end session variable php // destroy the session <?php session_destroy(); ?>