I have got an application that allows anonymous login. If the user wants to use some special functions, he has to register and to login. So far so good. Now i want to add an function to logout the current user and to refresh the UI to reflect the rights and the settings the anonymous user has (the default case). If I use the cuba_AuthenticationService logout methode, the user is logged out, but when he then trys to access a function, he gets the information window, that the session has been terminated.
Any idea how to handle this case correclty and to circumvent the dialog.