Addresses mantis #3718.

0.6.6-post-fixes
diva 2009-05-26 01:05:40 +00:00
parent 3fdafc53bd
commit 6ff01c774e
1 changed files with 10 additions and 1 deletions

View File

@ -124,7 +124,16 @@ namespace OpenSim.Framework.Communications.Clients
ArrayList SendParams = new ArrayList();
SendParams.Add(requestData);
XmlRpcRequest UserReq = new XmlRpcRequest("check_auth_session", SendParams);
XmlRpcResponse UserResp = UserReq.Send(authurl, 3000);
XmlRpcResponse UserResp = null;
try
{
UserResp = UserReq.Send(authurl, 3000);
}
catch (Exception e)
{
System.Console.WriteLine("[Session Auth]: VerifySession XmlRpc: " + e.Message);
return false;
}
Hashtable responseData = (Hashtable)UserResp.Value;
if (responseData.ContainsKey("auth_session") && responseData["auth_session"].ToString() == "TRUE")