I'm building a site (e-commerce) which stores session_id in DB
(Generated by $session = session_id();
). I need to destroy it once checkout completes. I've added
session_unset();
session_destroy();
at the end, but a simple print shows that session_id() is not being destroyed and is the same even after checkout. How can I completely destroy that. As you probably know, Firefox destroys all session on close while Chrome does not. I'm trying to destroy the session_id() generated. Any ideas ?