Automatically handling the cookie timeout might be a nice improvement.