def get_session_from_cookie(cookie_val):
    session_id = itsdangerous.Signer(settings.SECRET_KEY).unsign(cookie_val)
    return Session.load(session_id)
Given a cookie value, return the `Session` object or `None`.
dataset/ETHPy150Open CenterForOpenScience/osf.io/api/base/authentication/drf.py/get_session_from_cookie