Hi there.
First of all, thanks for providing an excellent chat script. It works flawlessly, but I need some specific nick handling. I have my own site with registered users (running on django) and I need to make a bridge with the chat. Of course, users are not allowed to change their nick names (frozen_nick = true).
I start chat providing user code parameter which is used in index.php to fetch real user name from db, something like http://chat.mydomain.com/?user=7324723477832. Everything works ok, but the last nickname is cached and when other user logs in on chat using the same computer, previous nick name is used, even if I define a new one in $params["nick"].
Here is the simplifyed code:
// get my user code in first script call
if (isset($_GET["user"]))
... fetch user from db, validate, store $_SESSION["my_nick] = $nick_from_db
// set nick for all other calls to index.php
if (isset($_SESSION["my_nick]))
$params["nick"] = $_SESSION["my_nick]
$chat = new phpFreeChat( $params );
...
If I clear the cache (data/private), everything works fine until next nick change.
What is wrong with my approach?
Thank you in advance.