Logout Session - Php

How to destroy session in php

Snippet Code


  
Rate this page :
  [ 0 votes]

This code can be used to logout the session value.

<?php session_start(); $_SESSION = array(); echo "<script type='text/javascript'>window.location.href='Your redirect url here...'</script>"; ?>

Tags


Ask Questions

Ask Question