'Returns the signing key version of the secure cookie.
The version is returned as int.'

def get_secure_cookie_key_version(self, name, value=None):

    self.require_setting('cookie_secret', 'secure    cookies')
    if (value is None):
        value = self.get_cookie(name)
    return get_signature_key_version(value)
