Change the cookie expiry tag to be 600 seconds instead of 300 so that when the user tries to issue a command it says that the session expired instead of just kicking them to the login page.
When they have no cookies it should take them straight to the login page
When they have a cookie it should as them to verify themselves but keep the command they entered.
Because of this we may want to increase the expiry even longer: Maybe just not have and expiry on the cookie what so ever. But if we do that then we can not keep the last command and use it automatically,
Change the cookie expiry tag to be 600 seconds instead of 300 so that when the user tries to issue a command it says that the session expired instead of just kicking them to the login page.
When they have no cookies it should take them straight to the login page
When they have a cookie it should as them to verify themselves but keep the command they entered.
Because of this we may want to increase the expiry even longer: Maybe just not have and expiry on the cookie what so ever. But if we do that then we can not keep the last command and use it automatically,