Quote:
Originally Posted by balinor
http://forum.x-cart.com/viewtopic.php?t=3438
|
You are a better searcher than I! Thanks, that hit the spot! Thank you for that. That thread has lots of good info.
Now that I did the first name mod, though, I'm seeing some artifacts from cookie handling because I have secure login chosen and a different secure domain than http domain.
The name cookie gets stuffed into the https domain, and their name doesn't appear when the customer returns to the http domain on their own.
(of course, this has nothing to do with the first name mod... I only noticed it now because my attention is in this area right now)
This is the code welcome.tpl uses to figure out the domain to stuff the cookie into:
Code:
$_tmp = parse_url($current_location);
setcookie("GreetingCookie", $first_last, time()+3600*24*180, "/", $_tmp["host"]);
Maybe there's another thread that deals with cookies between secure and nonsecure domains?