Memory limit has been reached - magento 1.9
<p>After migrating my magneto site to new server (CentOS 6 ) i can't update or upload new images to any of my products. its showing  <strong>Memory limit has been reached</strong> while uploading any images.</p>

<p>logs : </p>

<blockquote>
  <p>2016-02-04T07:24:35+00:00 ERR (3): Notice: Undefined index: httponly  in /var/www/vhosts/domain.com/httpdocs/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 96<br>2016-02-04T07:24:35+00:00 ERR (3): Notice: Undefined index: httponly  in /var/www/vhosts/domain.com/httpdocs/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 96<br>
  2016-02-04T07:24:35+00:00 ERR (3): Notice: Undefined index: secure  in /var/www/vhosts/domain.com/httpdocs/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 98<br>
  2016-02-04T07:24:35+00:00 ERR (3): Notice: Undefined index: domain  in /var/www/vhosts/domain.com/httpdocs/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 100</p>
</blockquote>

<p><a href="https://i.stack.imgur.com/6nkfV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6nkfV.png" alt="enter image description here"></a></p>