akrabat/zf2-tutorial — Issue #3: double rendering view
Author: hoseinian
Created: 2012-02-09 18:23:03+00:00
State: open

hi i've notice that when i do this

session_start();

if (!isset($_SESSION['count']))
$_SESSION['count'] = 1;
else
$_SESSION['count']++;

echo $_SESSION['count'];

in indexController ,everytime i reload the page $_SESSION increase twice
in other word the indexAction method execute for 2 times , for example when i want to run a query it add two rows in my db