Hi everyone and specially those who created this wonderful piece of code!
I am implementing phpfreechat to my project and recently I have faced the following trouble:
Basically I do the following in my index.php file
require_once "chatlib/src/phpfreechat.class.php"; // adjust to your own path
$params["serverid"] = md5(__FILE__); // used to identify the chat
$params["refresh_delay"] = 1000; // 1000ms = 1s
$params["nick"] = iconv("ISO-8859-1", "UTF-8", $_SESSION["login"]);
$params['admins'] = array('admin' => 'pass');
$params["title"] = "chat";
$params["channels"] = array("Kabinet");
$params["height"] = "380px";
$params["display_pfc_logo"] = false;
$params["displaytabclosebutton"] = false;
$chat = new phpFreeChat($params);
So, as you can see, I am adding the nick parameter through $_SESSION here. BUT, after I close the browser window and then enter again, the chat message says "This nick is already in use"!
How do I solve this?