September 30th, 2002, 01:52 AM
invalidating current session in java bean?
I need to write a logout() method in my Java Bean to invalidate
the current session upon logout.
But i keep getting error when i try to access the session.
Does anyone know how to retrieve the current session in a Java Bean??
September 30th, 2002, 03:12 AM
Beans don't have access to the request object (as far as I know), so you're going to have to pass the session to the bean. Maybe like:
myBean.logout( session );