'Returns ``True`` if the session is set to expire when the browser
closes, and ``False`` if there\'s an expiry date. Use
``get_expiry_date()`` or ``get_expiry_age()`` to find the actual expiry
date/age, if there is one.'

def get_expire_at_browser_close(self):

    if (self.get(u'_session_expiry') is None):
        return settings.SESSION_EXPIRE_AT_BROWSER_CLOSE
    return (self.get(u'_session_expiry') == 0)
