timeout function

1 min == time out soon, plz save the file
2 min == time out, log in again