//make sure you don't forget to initialize session before destroying it session_start() ; session_destroy(); $_SESSION = [];//and clear it for this request