aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices.UserServer/UserHttp.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenGridServices.UserServer/UserHttp.cs20
1 files changed, 8 insertions, 12 deletions
diff --git a/OpenGridServices.UserServer/UserHttp.cs b/OpenGridServices.UserServer/UserHttp.cs
index e1385f7..191fccb 100644
--- a/OpenGridServices.UserServer/UserHttp.cs
+++ b/OpenGridServices.UserServer/UserHttp.cs
@@ -52,6 +52,10 @@ namespace OpenGridServices.UserServer
52 52
53 public UserHTTPServer() : base( 8002 ) 53 public UserHTTPServer() : base( 8002 )
54 { 54 {
55 }
56
57 public void Start()
58 {
55 MainConsole.Instance.WriteLine("Starting up HTTP Server"); 59 MainConsole.Instance.WriteLine("Starting up HTTP Server");
56 HTTPD = new Thread(new ThreadStart(StartHTTP)); 60 HTTPD = new Thread(new ThreadStart(StartHTTP));
57 HTTPD.Start(); 61 HTTPD.Start();
@@ -89,21 +93,13 @@ namespace OpenGridServices.UserServer
89 switch (req_type) 93 switch (req_type)
90 { 94 {
91 case "usersessions": 95 case "usersessions":
92 LLUUID sessionid = new LLUUID(rest_params[2]); // get usersessions/sessionid 96 string param = rest_params[2];
97 string result = "";
93 if (www_req.HttpMethod == "DELETE") 98 if (www_req.HttpMethod == "DELETE")
94 { 99 {
95 foreach (libsecondlife.LLUUID UUID in OpenUser_Main.userserver._profilemanager.UserProfiles.Keys) 100 result = OpenUser_Main.userserver._profilemanager.RestDeleteUserSessionMethod( null, null, param );
96 {
97 if (OpenUser_Main.userserver._profilemanager.UserProfiles[UUID].CurrentSessionID == sessionid)
98 {
99 OpenUser_Main.userserver._profilemanager.UserProfiles[UUID].CurrentSessionID = null;
100 OpenUser_Main.userserver._profilemanager.UserProfiles[UUID].CurrentSecureSessionID = null;
101 OpenUser_Main.userserver._profilemanager.UserProfiles[UUID].Circuits.Clear();
102 }
103 }
104
105 } 101 }
106 return "OK"; 102 return result;
107 } 103 }
108 104
109 return ""; 105 return "";