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

sequelize.js - Sequelize group by with association includes id -

c++ - Migration from QScriptEngine to QJSEngine -

delphi - Take screenshot in webcam using VFrames in Console Application -