base.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:producthunt 作者: davidgengler 项目源码 文件源码
def get_expire_at_browser_close(self):
        """
        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.
        """
        if self.get('_session_expiry') is None:
            return settings.SESSION_EXPIRE_AT_BROWSER_CLOSE
        return self.get('_session_expiry') == 0
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号