mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
* Started on converting UserHTTPServer to BaseHttpServer
* Added a 'param' param to the RestMethod * Added RestHandlerEntry to store more info about the 'rest' handler
This commit is contained in:
@@ -48,6 +48,22 @@ namespace OpenSim.Framework.User
|
||||
return "";
|
||||
}
|
||||
|
||||
public string RestDeleteUserSessionMethod( string request, string path, string param )
|
||||
{
|
||||
LLUUID sessionid = new LLUUID(param); // get usersessions/sessionid
|
||||
foreach (libsecondlife.LLUUID UUID in UserProfiles.Keys)
|
||||
{
|
||||
if ( UserProfiles[UUID].CurrentSessionID == sessionid)
|
||||
{
|
||||
UserProfiles[UUID].CurrentSessionID = null;
|
||||
UserProfiles[UUID].CurrentSecureSessionID = null;
|
||||
UserProfiles[UUID].Circuits.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
return "OK";
|
||||
}
|
||||
|
||||
public XmlRpcResponse XmlRpcLoginMethod(XmlRpcRequest request)
|
||||
{
|
||||
XmlRpcResponse response = new XmlRpcResponse();
|
||||
|
||||
Reference in New Issue
Block a user