|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
invalidating current session in java bean?
Hi,
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. bu using session.invalidate(); Does anyone know how to retrieve the current session in a Java Bean?? Thanks.. |
|
#2
|
|||
|
|||
|
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:
Code:
myBean.logout( session ); |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > invalidating current session in java bean? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|