def set_search_csrf(session):
    """Extract the required CSRF token.

    LinkedIn's search function requires a CSRF token equal to the JSESSIONID.
    """
    csrf_token = session.cookies['JSESSIONID'].replace('"', '')
    session.headers.update({'Csrf-Token': csrf_token})
    return session