Implemented session timeout and "remember me" functionality.