'Verifies the signature of this safe cookie data.
Successful verification implies this cookie data is fresh
(not expired) and bound to the given user.'

def verify(self, user_id):

    try:
        unsigned_data = signing.loads(self.signature, salt=self.key_salt, max_age=settings.SESSION_COOKIE_AGE)
        if (unsigned_data == self._compute_digest(user_id)):
            return True
        log.error("SafeCookieData    '%r'    is    not    bound    to    user    '%s'.", unicode(self), user_id)
    except signing.BadSignature as sig_error:
        log.error('SafeCookieData    signature    error    for    cookie    data    {0!r}:    {1}'.format(unicode(self), sig_error.message))
    return False
