end session variable php

PHP
// destroy the session
<?php
session_destroy();
?>
Source

Also in PHP: