Hi, i need to have my app users in a phpfreechat, i'm using the params in my php source code like this:
require_once "src/phpfreechat.class.php"; // adjust to your own path
$params["serverid"] = md5($info['room']); // used to identify the chat
$params["channels"] = array($info['room']);
$params["language"] = 'es_ES';
$params["nick"] = $nickname;
$params["title"] = 'This is '.$info['sala'];
$params["firstisadmin"] = true;
$params["showwhosonline"] = false;
$params["showsmileys"] = false;
$params["height"] = '150';
$params["displaytabclosebutton"] = false;
$params["display_pfc_logo"] = false;
$params["shownotice"] = 0;
$params["startwithsound"] = false;
$params["connect_at_startup"] = true;
$chat = new phpFreeChat($params);
. It works, but sometimes some users enter with no nickname and no room. Its a cache/session/cookie problem.
I have tried changing the nick, i.e. to "Peter" with the /nick command and then enter again. No matter what is in $params["nick"], I always return with nick "Peter", this is, the name saved in the cache/session
It is possible to force the nick / room to the chat object despite the session variables? (It would be great to work without sessions, I don't need them at all)
thanks in advice..!