MAPI Manual

NAME

LOGOUT

FUNCTION

User logout

SYNOPSIS

action: LOGOUT
login_name
session_id
or
device_id

DESCRIPTION

This function allows users to logout. Users can provide their login name and session ID. Alternatively, device ID is also accepted for logout. Both GET and POST methods can be used to perform the request.


Required Parameters
* action: specifies the requested function. Sets to LOGOUT.
* login_name: the username provided for login.
* session_id: the session ID assigned by the system.
or
* device_id: a unique ID of the device. If provided, the system can use it as a key to identify users.

RETURN DATA

For each valid request, the server provides a response in XML format.
The response contains the following attribute:

* msg: a string indicating the success of logout.


For an invalid request, the response XML contains the following attribute:
* msg: a string containing the error message.

ROLE PERMITTED

All roles

EXAMPLES

The following example shows a successful HTTP GET request and response.

Request:
http://app02.yvntech.com/MapIHttpS/MapIS?action=LOGOUT&device_id=mytestid

Response:
<result tftype='1' infotype='0'>
    <field name='msg'>SUCCESS</field>
</result>

TIPS

ENVIRONMENT

AUTHOR

YVN Tech

SEE ALSO

LOGIN

Mweb v2.0 YVNTECH 2014