This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes how to update colunm in database table for particular userid after session is expire Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "how to update colunm in database table for particular userid after session is expire " Watch "how to update colunm in database table for particular userid after session is expire " New topic
Author

how to update colunm in database table for particular userid after session is expire

shyam ji gautam
Ranch Hand

Joined: Sep 17, 2011
Posts: 48
dear all


i want to update the data for particular userid in database after session is expire how i can do this ?

first i elaborate the actual requirement in my application i want then when session time out happen then one particular flag for user id like 'test' is set ='no' and send the page to login.jsp
using filter
i am using hybernate so how can i update that flag for particular userid after the session is expire using hybernate .

ntumba lobo
Ranch Hand

Joined: Oct 21, 2008
Posts: 180
I guess you could an HttpSessionListener and put your logic with hibernate in the method sessionDestroyed()


SCJP 5 , SCWCD 5, SCEA 5
 
 
subject: how to update colunm in database table for particular userid after session is expire