By 12/02/2016 7 Comments

How To Destroy Session In PHP

  • You can destroy/delete any previous session in PHP.
  • Destroying a session means destroy/delete all the previous data which is already stored in session.

Example: index page

 // following function removes all session variables.

// following function destroys/deletes the previous session.
 View session data on another page 

Example: page-2



if(!isset($_SESSION["site_name"])) echo "Session has destroyed!"; else { echo "Webiste is: " . $_SESSION["site_name"] . "
"; echo "Url: " . $_SESSION["site_url"]; }

Posted in: PHP, Solutions

Leave your valuable Comment

Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .