5 messages in com.mysql.lists.javaRE: java servlet
FromSent OnAttachments
Bin Cai20 Sep 2001 08:15 
Edilmar Alves20 Sep 2001 10:38 
Bin Cai20 Sep 2001 10:57 
Edilmar Alves20 Sep 2001 11:19 
Glenn Wearen21 Sep 2001 03:04 
Subject:RE: java servlet
From:Glenn Wearen (glen@columba.com)
Date:09/21/2001 03:04:56 AM
List:com.mysql.lists.java

This is the wrong place to discuss this topic, If you look in the JSP-@JAVA.SUN.COM list archives you will find your answer.

Anyway try this, when the third attempt fails try session.invalidate()

Glenn

-----Original Message----- From: Bin Cai [mailto:ca@ugrad.cs.ualberta.ca] Sent: Thursday, September 20, 2001 6:58 PM To: Edilmar Alves Cc: ja@lists.mysql.com Subject: Re: java servlet

Hello, Edilmar Thank you for your help. I am using servlet session.

HttpSession session =request.getSession(true); I put interger called count in the session. 'count' keep track the times of user trying to login in. If the user failed for three times, he will not have a chance to try again. he has to close the browser and open another one and try. I tried to use global variable to count the times. but when i close the browser and open another one, the global variable is still there and user can no longer try. it is not good. so i decide to use session because i think if i close the browser, the session is gone. However, the session is still there.

Thank you for your help bin

On Thu, 20 Sep 2001, Edilmar Alves wrote:

To unsubscribe, send a message to the address shown in the List-Unsubscribe header of this message. If you cannot see it, e-mail java@lists.mysql.com instead.