hey,
in case i understood your question...
what you have to do is to run setMaxInactiveInterval(600)
on your session. every
jsp page has first of all to check if the user session is valid. if not- it's your choice what to do...
in any case your server cannot know if the user had an electricity problem. so, i don't know how to deal with this stuff...