title: Why my requests session expire?
body: <p>I am using requests 2.12.1 library in Python 2.7 and Django 1.10 for consume web services. When I use a session for save cookies and use persistence, and pass 10 seconds ~ without use any web service, my view regenerates the object requests.Session()...</p>
  
  <p>This makes web service doesn't serve me, because my view has changed the cookies.</p>
  
  <p>This is my Views.py:</p>
  
  <pre><code>client_session = requests.Session()
  
  @watch_login
  def loginUI(request):
          response        =   client_session.post(URL_API+'login/', data={'username': username, 'password': password,})
          json_login      =   response.json()
  
  @login_required(login_url="/login/")
  def home(request):
    response_statistics = client_session.get(URL_API+'statistics/')
    log('ClientSession: '+str(client_session))
  
    try:
        json_statistics     =   response_statistics.json()
    except ValueError:
        log('ExcepcionClientSession: '+str(client_session))
  
        return logoutUI(request)
  
    return render(request, "UI/home.html", {
        'phone_calls'           :   json_statistics['phone_calls'],
        'mobile_calls'          :   json_statistics['mobile_calls'],
        'other_calls'           :   json_statistics['other_calls'],
        'top_called_phones'     :   json_statistics['top_called_phones'],
        'call_ranges_week'      :   json_statistics['call_ranges_week'],
        'call_ranges_weekend'   :   json_statistics['call_ranges_weekend'],
        'access_data'           :   accessData(request.user.username),
    })
  
    def userFeaturesFormInit(clientRequest):
      log('FeaturesClientSession: '+str(client_session))
      response = client_session.get(URL_API+'features/')
  
      try:
          json_features   =   response.json()
      except ValueError as e:
          log('ExcepcionFeaturesClientSession: '+str(client_session))
          raise e
  </code></pre>
  
  <p>Thank you.</p>