View Single Post
  #58  
Old 04-28-2008, 01:30 AM
 
Richard Walkling Richard Walkling is offline
 

Member
  
Join Date: Apr 2004
Posts: 22
 

Default Re: Making it so they don't have to re-login everytime

I added this to our cart on Friday - and had a number of reports over the weekend that Add tocart buttons were not working - NEVER had this problem before and this was the only change - so I have removed it.

v.4.1.8
php 5.1.6
mysql 5.0.22

#
# If the user has been here in the last 6 month, extract the session ID from a cookie
#
if (!empty($HTTP_COOKIE_VARS["xsessionid"]))
$HTTP_POST_VARS["xid"] = $HTTP_COOKIE_VARS["xsessionid"];

include_once $xcart_dir."/init.php";

#
# Keep user session ID in a cookie for 6 months
#
if (empty($HTTP_COOKIE_VARS["xsessionid"]) && !empty($XCARTSESSID))
@setcookie("xsessionid", $XCARTSESSID, time()+3600*24*180);
__________________
Richard
4.7.12
Reply With Quote