• Post Reply Bookmark Topic Watch Topic
  • New Topic

session getLastAccessTime()

 
wayne xu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!