Thanks a ton for the suggestion. When I put the machine times in sync it worked perfectly.

But since there would be many users accessing the servers from accross different time zones, if I still use "System.currentTimeMillis() + 60000", it would calculate the time based on the client machine. Is there a work around for this problem?