Using Connect Enterprise Web Services |
|||
| Login and requests > Log a user out | |||
When a user logs out, the user's session ends, and Connect Enterprise invalidates the BREEZESESSION cookie by setting it to null and using an expiration date that has passed. For example, if you call logout on August 29, 2006, you see this Set-Cookie method in the response header, setting an empty cookie value and an expiration date a year earlier:
Set-Cookie:BREEZESESSION=;domain=.macromedia.com;expires=Mon,29-Aug-200522:26:15 GMT;path=/
If you are managing the BREEZESESSION cookie, invalidate the value so it is not reused after a user logs out.
logout to log the user out:https://example.com/api/xml?action=logout
ok to make sure the logout was successful.null or otherwise invalidate it. For example, in this Java code snippet, the breezesession variable stores the cookie value and is set to null:
public void logout() throws XMLApiException {
request("logout", null);
this.breezesession = null;
}
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/breeze/6/xml_api/02_logi9.htm