Hi, if you need to make access to the login window, you can help the following code:
var ServerName:string = facesContext.getExternalContext().getRequest().getServerName()
var externalCtx = facesContext.getExternalContext();
externalCtx.redirect(ServerName+"/TestFolder/Test.nsf?logout&redirectTo="+facesContext.getExternalContext().getRequestContextPath()); // in parentheses indicate the path to the database