Help Center Live Community
July 23, 2014, 09:13:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]   Go Down
Author Topic: Expired cookies / Please wait while we connect you  (Read 7149 times)
Not too much to say...
Offline Offline

Posts: 2

« 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:

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

                //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:

            $time = time() + 3800;

            $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.  
« Last Edit: February 22, 2011, 12:43:19 PM by noise » Logged
Pages: [1]   Go Up
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.159 seconds with 19 queries.

Google visited last this page July 18, 2014, 10:11:45 PM