Hi,
I'm trying to kill an inactive session.
I execute show_sessions so i obtain all sessions related information.
So i now have "session" (the object ID of the session begun by user_name)...
If i kill an active session, the CS deactivate it. But what should i do if i want to delete or kill Inactive sessions????
Now if i try to kill an inactive sessions an Exception occurs saying that this session id does not exist in repository.
Here is my code
public boolean matarSesion (String identificadorSesion, String repositorio)
{
try
{
sesion = manager.getSession(repositorio);
IDfId id = new DfId(identificadorSesion);
sesion.killSession(id, DfSessionKillImmediacyLevel.UNSAFE, "La sesión "+ identificadorSesion + " ha sido desconectada de forma manual");
return true;
}
catch (DfServiceException e1)
{
e1.printStackTrace();
}
catch (DfException e2)
{
e2.printStackTrace();
}
finally
{
manager.release(sesion);
}
return false;
}