php - Need destroy session after close browser tab not whole browser -
this question has answer here:
- how change session timeout in php? 5 answers
i need destroy session after page closed in browser. tried unset $_session['value']; can not working destroy current page need destroy after closed in browser
you can write this
session_set_cookie_params(0); session_start();
this destroy session when browser closed.
Comments
Post a Comment