Help Center Live Community

Support => Installation Help & Software Support => Topic started by: noise on February 22, 2011, 11:27:47 AM



Title: Expired cookies / Please wait while we connect you
Post by: noise on February 22, 2011, 11:27:47 AM
Hi all.  

I have found that some clients can't connect to chat with Opera and Google Chrome browsers.    It happens when server and clients are in different time zones.    So, when client trying to connect, cookies are expired and browser does not store them.   Operator can Accept chat, but Client does not connect to chat and see only next message "Please wait while we connect you". 

1.    PHPSESSID is sending twice - using session_start() function and then using setcookie() function in class/include.   php file.    I think, setcookie() is unnecessary, since session_start() sends it's own cookie.    So I have comment line 86 in class/include.   php:

Before:
Code:
                setcookie(session_name(), session_id(), time() + 3600, ((strpos($_SERVER['HTTP_USER_AGENT'], "MSIE 6")!== false)? "\\" : "/"));

After:
Code:
                //setcookie(session_name(), session_id(), time() + 3600, ((strpos($_SERVER['HTTP_USER_AGENT'], "MSIE 6")!== false)? "\\" : "/"));

2.    Aardvark_ cookies.    By default, aardvark_* cookies expires after 3800 seconds, but when server and client are placed in different timezones, they can be expired right away after sending.    I think it will be better to increase cookie lifetime to 24 hours, so I've changed line 54 in class/aardvark.   php:

Before:
Code:
            $time = time() + 3800;

After:
Code:
            $time = time() + 86400;

I have done some fixes for Firefox (hxxp: www. helpcenterlive. com/smf/firefox_306_killed_this-t855. 0. html;msg3743#msg3743) earlier and it seems that i have both Client and Operator sides fully functional now in IE7, Firefox 3.   0.   6+, Opera 11 and Google Chrome 9.  

Feel free to correct me if I've done something wrong and sorry for my bad English.