wmguk Posted March 20, 2009 Share Posted March 20, 2009 Hey, I've got a session thats in use... $cart = $_SESSION['cart']; can i empty the session for cart but not distroy ALL sessions? Link to comment https://forums.phpfreaks.com/topic/150316-solved-empty-a-shopping-cart-session/ Share on other sites More sharing options...
BloodyMind Posted March 20, 2009 Share Posted March 20, 2009 unset($_SESSION['cart']); will unset this session variable $_SESSION['cart'] = ''; will evacuate it Link to comment https://forums.phpfreaks.com/topic/150316-solved-empty-a-shopping-cart-session/#findComment-789423 Share on other sites More sharing options...
wmguk Posted March 20, 2009 Author Share Posted March 20, 2009 excellent, thank you Link to comment https://forums.phpfreaks.com/topic/150316-solved-empty-a-shopping-cart-session/#findComment-789424 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.