Skip to content

PHP code snippet – How to start a session?

<?php 
session_start(); //starts session
session_unset(); // remove all session variables
session_destroy(); // destroy the session
?>


See also  Java code snippet - How does devision works ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.