title: Flask sessions: PERMANENT_SESSION_LIFETIME not being set correctly
body: <p>So I am using a flask session. I am using the filesystem type so that I can store more session data than I otherwise could. My users want to keep session timeouts long, and the site uses minimal server storage, so this is fine. However, when I try to set the timeout session to 24 hours below, it still times out after 30 minutes. </p>
  
  <pre><code>application = Flask(__name__)
  SECRET_KEY = os.urandom(32)
  application.config['SESSION_PERMANENT'] = True
  application.config['SESSION_TYPE'] = 'filesystem'
  application.config['PERMANENT_SESSION_LIFETIME'] = timedelta(hours = 24)
  
  application.config['SECRET_KEY'] = SECRET_KEY
  
  Session(application)
  
  
  
  @application.before_request
  def make_session_permanent():
      session.permanent = True
      application.permanent_session_lifetime = timedelta(hours = 24)
  
  
  
  
  </code></pre>
  
  <p>What am I doing wrong here?</p>