We are sorry. The service is currently down due to maintenance activities. The service interruption will take no more than 30 minutes.


Calls the /sso-user/login Chatwee API method. It returns the ID of a newly created session.


  require_once(dirname( __FILE__ ) . "/ChatweeV2_SDK/Chatwee.php");


  try {
    $sessionId = ChatweeV2_SsoUser::login(Array(
      "userId" => "507f191e810c19729de860ea",
      "userIp" => ""
    echo "The user has been logged in with the following session ID: " . $sessionId;
  } catch(Exception $exception) {
    echo "An error occured: " . $exception->getMessage();
Name Description Type Mandatory Remarks
userId ID of the user string yes the value obtained from the ChatweeV2_SsoUser::register method
userIp user IP address string no is necessary if ban feature needs to be used against SSO users