Though this question has multiple duplicates i could not find proper solution for me. Need Some help.
I have used ini_set(\'session.cookie_lifetime\', 0);
ini_set(\'session.cookie_lifetime\', 0);
If you are confused what to do, just refer to the manual of session_destroy() function:
http://php.net/manual/en/function.session-destroy.php
There you can find some more features of session_destroy().