php - Need destroy session after close browser tab not whole browser -


this question has answer here:

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

Popular posts from this blog

javascript - Why Selenium can't find an element that is graphically visible -

android - Basic camera in app -

javascript - Can I make channel list with youtube API if I do not own the channel? I don't receive error but nothing display? -