title: Does a session variable stay in memory in php
body: <p>If I store contents of a text file in a session variable in php, will it stay in memory for the period of that session? </p>
  
  <p>I have a small project where I need to perform searches in that specific text file which is just over 1mb. I'm thinking of using a session variable if it stays in memory, so that I don't have to read this file again and again.</p>