user.checkAuthentication

    This method checks and prolongs user session.

    Calling the user.checkAuthentication method with the parameter sessionid set prolongs user session by default.

    (object) Returns an object containing information about user.

    Request:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": {
    4. "userid": "1",
    5. "username": "Admin",
    6. "name": "Zabbix",
    7. "url": "",
    8. "autologin": "1",
    9. "autologout": "0",
    10. "lang": "ru_RU",
    11. "refresh": "0",
    12. "theme": "default",
    13. "attempt_failed": "0",
    14. "attempt_ip": "127.0.0.1",
    15. "attempt_clock": "1355919038",
    16. "rows_per_page": "50",
    17. "timezone": "Europe/Riga",
    18. "type": 3,
    19. "userdirectoryid": "0",
    20. "ts_provisioned": "0",
    21. "sessionid": "673b8ba11562a35da902c66cf5c23fa2",
    22. "debug_mode": 0,
    23. "secret": "0e329b933e46984e49a5c1051ecd0751",
    24. "userip": "127.0.0.1",
    25. "gui_access": 0,
    26. "deprovisioned": false,
    27. "auth_type": 0
    28. },
    29. }

    Response is similar to call response with “userData” parameter set to true (the difference is that user data is retrieved by session id and not by username / password).

    CUser::checkAuthentication() in ui/include/classes/api/services/CUser.php.