Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

insert a value into database

  Asked By: Donna    Date: Aug 09    Category: Java    Views: 1122

I am using Jsp and mysql to develop a web based application.
I want to insert a value into database if the user is inactive for
say 30 minutes. How can I do that?



1 Answer Found

Answer #1    Answered By: Luki Fischer     Answered On: Aug 09

These are some possible ways:

Using session :

- use System.currentTimeMillis(); that contains server time when the
request occurs

- Or use sessoin timeout and do something where session is going to be

also might be better to use connection, depends on your appliation.

Didn't find what you were looking for? Find more on insert a value into database Or get search suggestion and latest updates.