adjust session.is_permanent() and session.is_secure() so that they don't fail if run outside of a secure context
adjust session.is_permanent() and session.is_secure() so that they don't fail if run outside of a secure context

storborg/gimlet