in reply to Re^2: Using Timestamp to tell if someone is on the site
in thread Using Timestamp to tell if someone is on the site

Consider calculating the time difference when you select the record. For example in MySQL

SELECT TIMESTAMPDIFF(SECOND,lastvisit,NOW()) FROM table

Change SECOND to MINUTE as required.

poj