'Creates signature for the session.'

def _signature(self, *parts):

    signature = hmac.new(six.b(self.secret), digestmod=hashlib.sha1)
    signature.update(six.b('|'.join(parts)))
    return signature.hexdigest()
