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 Struts and the fly likes session getLastAccessTime() 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 » Frameworks » Struts
Bookmark "session getLastAccessTime()" Watch "session getLastAccessTime()" New topic
Author

session getLastAccessTime()

wayne xu
Greenhorn

Joined: Feb 15, 2005
Posts: 6
How can I use the getLastAccessTime()method in the Struts to AUTOMATICALLY track the last access or session terminate time?
Thanks in advance,
Wayne
--
anupa oru
Ranch Hand

Joined: Jan 15, 2005
Posts: 118
hi,
I don't know how much it works for you.You have to write code in Action to get Session from request and there by accessing getLastAccessed time.I hope this wotks correct me if it's wrong.
 
 
subject: session getLastAccessTime()
 
Similar Threads
About the Session
Trouble running example from Hibernate Made Easy, p. 156
Session problem in NetBeans
session.getLastAccessedTime() = -1 ??
A mock question about session