login and set session var, logout and clear session var; store checkmark array