I'm currently using setcookie() function to store session variables eg.
setcookie($session_user,"abc");
how do I check if the session has ended (either by *closing browser, timeout or setcookie($session_user,"")😉?
I need it for my shopping cart so that when the user ends the session, the shopping cart will be deleted straight away.
Thanks in advance.