This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
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
 
Similar Threads
when user close the browse how i update the data related to that user in databse ?
is admininstrator able to view the data for activity time?
hibernate+spring+mysql+tomcat
regarding session
how can i update the databse for partcular user_id after session is expire ?