Users end their Legacy REST Web Services session by logging out. Once logged out, no client will be able to perform Legacy REST Web Services operations using the session ID that was presented with the log out request.

Invoke the /atg/userprofiling/ProfileServices.logoutUser method to log out of the Legacy REST Web Services server. Use the HTTP POST method.

The following example shows an HTTP request to log out of a Legacy REST Web Services session.

curl -v -b cookies.txt -X POST \
http://myserver:8080/rest/bean/atg/userprofiling/ProfileServices/logoutUser

* About to connect() to myserver port 8080 (#0)
*   Trying 12.34.567.890... connected
* Connected to myserver (12.34.567.890) port 8080 (#0)
> POST /rest/bean/atg/userprofiling/ProfileServices/logoutUser HTTP/1.1
> User-Agent: curl/7.21.1 (i386-pc-win32) libcurl/7.21.1 zlib/1.2.5
> Host: myserver:8080
> Accept: */*
> Cookie: DYN_USER_ID=120001; JSESSIONID=51B1124DFFC8293CF42ACA8AF2D88324;
> DYN_USER_CONFIRM=bca3eb6c2cdeb0e4a625c7165a088e2e
>
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1
< X-ATG-Version: version=
QVRHUGxhdGZvcm0vMTAuMCxDb21tZXJjZVJlZmVyZW5jZVN0b3JlLzEwLjAgWyBQbGF0Zm9ybUxpY
2Vuc2UvMCBCMkNMaWNlbnNlLzAgIF0=
< Content-Type: application/xml;charset=UTF-8
< Transfer-Encoding: chunked
< Date: Thu, 28 Oct 2010 20:41:00 GMT
<
<?xml version="1.0" encoding="UTF-8"?>

<atgResponse>void</atgResponse>
* Connection #0 to host myserver left intact
* Closing connection #0

Copyright © 1997, 2015 Oracle and/or its affiliates. All rights reserved. Legal Notices