Session expiration

Permalink
I've got a single page with a form in it, and if I sit idle enough and try to submit the form I receive the "else" from my if in the controller. The else basically echo's something to the user stating that there is a problem with the form submission (not going into all of the detail). I've determined that this happens because the session has timed out. But, the page is still up on my screen and displays "currently logged in as blah" in my footer. So, to the average user they'd wonder what the heck is going on.

Advice on how to terminate the current page and go to the home page ... and make the footer stop displaying "currently signed in as blah" ... so the user will realize they've sat idle for too long and log back in?

tash