the condition test for checking the client cookie value was wrong; don't call process_opt multiple times