If you want just pass the default name of the visitor, look in libs/chat.php. Function visitor_from_request().
Default name is detected there.
I like this idea and will add "visitor" argument into 1.5.2.
-------
If you want to integrate webim with your PHP application, you can share the session between them:
Modify libs/chat.php.
function visitor_from_request() {
.......
return array( 'id' => $userId, 'name' => $userName );
}Add something like:
if(isset($_SESSION['userid'])) {
$userId = $_SESSION['userid'];
}Change "Settings -> general -> Visitor's identifier" to see visitor's id: "{name} {id}".
If you allow only logged in visitors to chat, disable "Settings -> Optional Services -> Allows users to change their names".
PS: Also look
here