<?php session_start(); session_destroy(); header("Location: login.php"); exit; ?>
info at phpclasses dot org