logout

Best practices for Storyboard login screen, handling clearing of data upon logout

让人想犯罪 __ 提交于 2019-11-26 02:22:19
I'm building an iOS app using a Storyboard. The root view controller is a Tab Bar Controller. I'm creating the login/logout process, and it's mostly working fine, but I've got a few issues. I need to know the BEST way to set all this up. I want to accomplish the following: Show a login screen the first time the app is launched. When they login, go to the first tab of the Tab Bar Controller. Any time they launch the app after that, check if they are logged in, and skip straight to the first tab of the root Tab Bar Controller. When they manually click a logout button, show the login screen, and

Best practices for Storyboard login screen, handling clearing of data upon logout

不打扰是莪最后的温柔 提交于 2019-11-26 01:09:44
问题 I\'m building an iOS app using a Storyboard. The root view controller is a Tab Bar Controller. I\'m creating the login/logout process, and it\'s mostly working fine, but I\'ve got a few issues. I need to know the BEST way to set all this up. I want to accomplish the following: Show a login screen the first time the app is launched. When they login, go to the first tab of the Tab Bar Controller. Any time they launch the app after that, check if they are logged in, and skip straight to the

Prevent user from seeing previously visited secured page after logout

冷暖自知 提交于 2019-11-25 21:44:00
问题 I have the requirement that the end user should not be able to go back to the restricted page after logout/sign out. But currently the end user is able to do that by the browser back button, visiting browser history or even by re-entering the URL in browser\'s address bar. Basically, I want that the end user should not be able to access the restricted page in any way after sign out. How can I achieve this the best? Can I disable the back button with JavaScript? 回答1: You can and should not

javax.faces.application.ViewExpiredException: View could not be restored

心不动则不痛 提交于 2019-11-25 21:42:10
问题 I have written simple application with container-managed security. The problem is when I log in and open another page on which I logout, then I come back to first page and I click on any link etc or refresh page I get this exception. I guess it\'s normal (or maybe not:)) because I logged out and session is destroyed. What should I do to redirect user to for example index.xhtml or login.xhtml and save him from seeing that error page/message? In other words how can I automatically redirect