title: django - sessions not save for some reason when I go back to the same page using a link
body: <p>In one of my views I'm saving a few sessions like this:</p>
  
  <pre><code>def myview(request):
      request.session['session_1'] = 'value1
      request.session['session_2'] = 'value2'
  </code></pre>
  
  <p>Then on the same view function and also other views found on other applications I'm trying to get the session values like this:</p>
  
  <pre><code>   session_value1 = request.session['session_1'] 
     session_value2 = request.session['session_2']
  </code></pre>
  
  <p>I would like the values for the 'session_1' and 'session_2' to never expire and also be available anywhere on the web site (like other views on the same application and views on other applications).</p>
  
  <p>My problem is that when I'm on the same page/view (just described above) when I do a refresh to the page I have to problems retrieving session_1 and session_2 values. But let's say if I go to a different page and then come back to the original page the 'session_1' and 'session_2' values are gone. Also the values of the 'session_1' and 'session_2' are not available on any other page/view.</p>
  
  <p>I have no settings for sessions on my settings.py so all the values for sessions are the default ones.</p>
  
  <p>Any thoughts why the sessions are not saved? Thank you!</p>