Hi J.
I am no webdev expert, but it seems to me that your session time is expired.
If this is the problem you should change the time a session should expire or change to the AWP method, with no session time.
This is explained in the WebDev video courses of Fabrice Harari, there are also some basic classes to start with.
Hope it helps.
Andres Sanchez R
Monterrey Mexico