Se Koan wrote:I have Tomcat 8 login against my mysql database. Here is how it looks: NetBeans Tomcat Jsp mysql forms login and session
NetBeans is not part of a
J2EE web application. If it makes a difference that you're running NetBeans, you're doing something wrong.
Se Koan wrote:
The problem is that when I logout like this:
it logsout but when I try to log in with a different user, it logs in the previous(first) user!
If I restart Tomcat server, I can login with any user at first but any other retry to login with a different but first user is failure: it auto logs in the first user that was logged in.
Please do not discard Exceptions without analyzing or reporting them. You don't know what valuable/essential information you may be throwing away.
If you are using the JEE-standard security system, it will not log you in automatically under any user ID whatsoever.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.