How delete php session by the name
example i have session['sec'] and session['page'] i need to delete session['page'] with out delete session['sec']
// for a single variable
unset($_SESSION['session_var']);
// destroy the Session, not just the data stored!
session_destroy();
// delete the session contents, but keep the session_id and name:
session_unset();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With