Hi,
I have exactly the same application :
- A UserInfo beans with session scope, where i also have static objects to share some
info between all users and I have a logOff button which call session.invalidate(). I
also use the HttpSessionBindingListener interface to know when the session is closed
and do some cleanup. And it works well !
I use resin 1.1 under window NT ! I don't know what is different with your config ...
Concerning the3) there isn't any real solution (I think !), the only possibility
is to set the session Invalidate time out to an appropriated value and to catch the
invalidate ( with the valueUnbound method) in order to do the needed cleanup !
and for the 2) I suppose this is related to your other problems : If your previous
user has logged off ... It's du to the problem 1 which Should work ( To be sure
invalidate() is called, try to add the HttpSessionBindingListener interface and see
oif it's called ). If your user didn't logOff before, you can reconfigure your bean
with the new information.
Hope this help
Regards
Veronique
Franck Rageade a écrit :
> Hello everyone,
>
> Perhaps you may find my questions trivial, but I am not an experimented JSP
>addict yet... I'm developping a JSP based intranet portal using Resin 1.1 as servlet
>motor. When a user is authenticated, a User object is instanciated with the user's
>configuration and this objet is stored in the session in order to be accessible from
>every page of the portal. This works very very well, but...
> (problems start here) there is a "logout" button, which calls a logout.jsp page,
>in which the invalidate() method is supposed to kill the session.
>
> 1) When the user logs in again, the previous User object is retrieved, which
>means that the session was not correctly invalidated.
>
> 2) When another user logs in from the same machine, the previous user's
>configuration is retrieved.
>
> 3) When the user doesn't not properly log out (browser killed or simply points
>to another URL), the invalidate() method is never called...
>
> Each of this point is a real problem and I would be very interested in any kind
>of help.
>
> Best regards,
>
> Franck
>
> ¤ş°`°ş¤ř,¸¸,ř¤ş°`°ş¤ř,¸¸,ř¤ş°`°ş¤ř,¸¸,ř¤ş°`°ş¤ř
>
> FRANCK RAGEADE
> Skill Group e-Business
>
> SBA 67 - France & Abroad
> Cap Gemini France - Division Rhône-Alpes
>
> 11, Chemin des Prés
> ZIRST 4403
> 38944 Meylan , France
>
> LoginId: frageade
> Email: [EMAIL PROTECTED]
> Phone: +33 (04) 76 04 23 30
> Fax: +33 (04) 76 41 24 61
>
> ¤ş°`°ş¤ř,¸¸,ř¤ş°`°ş¤ř,¸¸,ř¤ş°`°ş¤ř,¸¸,ř¤ş°`°ş¤ř
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets