90 lines
2.1 KiB
XML
90 lines
2.1 KiB
XML
|
<method name="sessionexpire">
|
||
|
<shortdes>
|
||
|
Expires session cookies.
|
||
|
</shortdes>
|
||
|
<des>
|
||
|
Using this request mode, you can expire previously generated sessions, whether you
|
||
|
generated them using the sessiongenerate call or the user logged in on the web site.
|
||
|
</des>
|
||
|
<arguments><struct count="1">
|
||
|
|
||
|
&authInfo;
|
||
|
|
||
|
<key name="expireall" count="opt">
|
||
|
<scalar><des>
|
||
|
If present and true, then all of the user's sessions will be expired.
|
||
|
</des></scalar>
|
||
|
</key>
|
||
|
|
||
|
<key name="expire" count="opt">
|
||
|
<list>
|
||
|
<scalar count="0more"><des>
|
||
|
Given a list of session ids, will expire each one individually. Session ids can be
|
||
|
obtained from previous calls to sessiongenerate--notably, the id is the third field
|
||
|
in the session.
|
||
|
</des></scalar>
|
||
|
</list>
|
||
|
</key>
|
||
|
|
||
|
</struct></arguments>
|
||
|
|
||
|
<expost>
|
||
|
POST /interface/xmlrpc HTTP/1.0
|
||
|
User-Agent: XMLRPC Client 1.0
|
||
|
Host: www.livejournal.com
|
||
|
Content-Type: text/xml
|
||
|
Content-Length: 542
|
||
|
|
||
|
<?xml version="1.0"?>
|
||
|
<methodCall>
|
||
|
<methodName>LJ.XMLRPC.sessionexpire</methodName>
|
||
|
<params>
|
||
|
<param>
|
||
|
|
||
|
<value><struct>
|
||
|
<member><name>username</name>
|
||
|
<value><string>test</string></value>
|
||
|
</member>
|
||
|
<member><name>password</name>
|
||
|
|
||
|
<value><string>test</string></value>
|
||
|
</member>
|
||
|
<member><name>ver</name>
|
||
|
<value><int>1</int></value>
|
||
|
|
||
|
</member>
|
||
|
<member><name>expireall</name>
|
||
|
<value><int>1</int></value>
|
||
|
</member>
|
||
|
|
||
|
</struct></value>
|
||
|
</param>
|
||
|
</params>
|
||
|
</methodCall>
|
||
|
</expost>
|
||
|
|
||
|
<!--===================[ RETURN ]==============================-->
|
||
|
<returns><struct count="1">
|
||
|
|
||
|
</struct></returns>
|
||
|
|
||
|
<exreturn>
|
||
|
HTTP/1.1 200 OK
|
||
|
Connection: close
|
||
|
Content-length: 1189
|
||
|
Content-Type: text/xml
|
||
|
Date: Fri, 26 Mar 2004 18:39:38 GMT
|
||
|
Server: Apache/1.3.4 (Unix)
|
||
|
|
||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<methodResponse>
|
||
|
<params>
|
||
|
<param>
|
||
|
<value><struct/></value>
|
||
|
</param>
|
||
|
</params>
|
||
|
</methodResponse>
|
||
|
</exreturn>
|
||
|
|
||
|
</method>
|