Cookies and Timeouts

Fixed cookies so that if you leave the page you will lose your session
after 30 seconds, also if you are on the page and lose your session you
will be redirected back to the login page