I have logout page when i click on logout or close the tab, session gets destroy. I want if user forgot to click on logout and if user visit the site after 4-5 days still the session should continue.

I have following logout script:

```
<?php
session_start();
session_regenerate_id(true);
unset($_SESSION['uid']);
unset($_SESSION['uname']);

session_destroy();

header("location:http://shopeeon.com/");
?>

```