How to hide some feature based on the user login? [closed]
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . We would like to hide some code features based on user login in Tomcat. We are using the basic authentications. Any suggestions? 回答1: IF what you meant was just hiding some resources depending on whether the user is logged in or not then it is just a matter of restricting access