how to discorrect from database using JavaBean when user click on "logout" button?
Posted on 2004-04-28
I created a logout button on my JSP page, but not sure how to implement it correctly.
if I just call window.close(), then this button does not really disconnect from database when the window is close.
but, i am using JavaBean to call the database object to connect and disconnect from database. however, there are several JavaBeans on each page. if I want to create a "generic" logout button that I can put it on every page, it will call every JavaBean to disconnect from database.
How to do this? is the right way to design the logout button? thanks.