View Single Post
  #4  
Old 12-22-2005, 04:22 AM
 
jsa jsa is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 197
 

Default

I'm not sure if it this is a good fix or what, but for now, I set $xcart_http_host to my domain minus the www. in config.php.

Then in welcome.tpl, I switched this:

Code:
setcookie("GreetingCookie", $first_last, time()+3600*24*180, "/", $_tmp["host"]);

to

this:
Code:
setcookie("GreetingCookie", $first_last, time()+3600*24*180, "/", $xcart_http_host);

That way, whether people go to doman.com www.domain.com or subdomain.domain.com, xcart can still grab the cookie.

I'm not sure if I lose anything by doing this. Obviously x-cart moved to the host method for a reason.
__________________
Building: X-Cart GoldPlus 4.6.1
Old cart:
XC 4.0.17 FComp-RMA-AOM-OFF-Affil
BCSE: Referral Pts-Surveys-BatchUp-OrderEZ- Reviews-RSS
FT: Glossary-OptCopt-AdvSrch-Recently Viewed-Also Bought
CM: eZConversion
XP: SalesRecovery, MultCrncy
Reply With Quote