php session variables
<p>I'm working with sessions for the first time and why does the variable $session_life always = 0?</p>

<pre><code>$_SESSION['time'] = time();
$inactive = 30;
$session_life = time() - $_SESSION['time'];
</code></pre>
