
Expire the session after some peiod of time by using in php.
Basically, two methods are available to destory the sessions.
1. session_destroy()
2. unset($_SESSION['testvaraible'])
3. setting the time out for this session
1.session_destroy()
if we will call the session_destroy(), it will destroy all the SESSION variable.It is no need any other parameters.
<?php
session_destroy();
?>
2....