- try {
- Subject subject = SecureRapActivator.getLoginContext()
- .getSubject();
- String subjectStr = subject.toString();
- SecureRapActivator.getLoginContext().logout();
- log.info(subjectStr + " logged out");
- } catch (LoginException e) {
- log.error("Error when logging out", e);
- }
- try {
- RWT.getRequest().getSession().setMaxInactiveInterval(1);
- PlatformUI.getWorkbench().close();
- } catch (Exception e) {
- if (log.isTraceEnabled())
- log.trace("Error when invalidating session", e);
- }
+ // try {
+ // Subject subject = SecureRapActivator.getLoginContext()
+ // .getSubject();
+ // String subjectStr = subject.toString();
+ // subject.getPrincipals().clear();
+ // SecureRapActivator.getLoginContext().logout();
+ // log.info(subjectStr + " logged out");
+ // } catch (LoginException e) {
+ // log.error("Error when logging out", e);
+ // }
+// SecureEntryPoint.logout(username);
+// PlatformUI.getWorkbench().close();
+ // try {
+ // RWT.getRequest().getSession().setMaxInactiveInterval(1);
+ // } catch (Exception e) {
+ // if (log.isTraceEnabled())
+ // log.trace("Error when invalidating session", e);
+ // }