hello mfuna
use cookies or session to track whether user logged in or not? and u can aslo user cookies to find out howmany times user logged in indstead of database
bye
soma sekhar
public class MyListener implements HttpSessionBindingListener {
ServletContext context;
public void ODSessionListener(ServletContext context) {
this.context = context;
}
public void valueBound(HttpSessionBindingEvent event) {
// called when this class is put [putValue] into the session
System.out.println(" ** [valueBound] ** Someone just bound my listener to a session!"
}
public void valueUnbound(HttpSessionBindingEvent event) {
// called when this class is removed [removeValue or invalidate] from the session
System.out.println(" ** [valueBound] ** Someone just bound my listener to a session!"
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.