Got it working, but... need advice
I moved the UE code BELOW the store db and details stuff. It would not send the e-mail. I put it back at the top, email goes. Moved it back down, logged out and noticed that the log out page is not destroying the session. I cleared the cookies and voila. It's all good. Quitting the browser of course destroys the session, which also makes it good. I think this may be giving me some of my fits. On my log out page I have:
<?php
if ("" == ""){
// WA_ClearSession
$clearAll = TRUE;
$clearThese = explode(",","");
if($clearAll){
foreach ($_SESSION as $key => $value){
unset($_SESSION[$key]);
}
}
else{
foreach($clearThese as $value){
unset($_SESSION[$value]);
}
}
}
?>
SHOULDN'T THIS DESTROY/UNSET THE PHPSESSID??? When it's not clearing the session, the quick cart still shows item counts from a previous order.
Please advise. Thanks.