wood burning stoves*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to update colunm in database table for particular userid after session is expire