PHP Session in different folder
<p>Problem PHP session in different folder.</p>

<p>I have problem with PHP session. </p>

<p>There are two folder: A AND B When I already logged in Folder A then i click link access to folder B when come to index.php file in Folder A. It doesn't to recognize session state.</p>

<p>PHP Code:</p>

<pre><code>if(!isset($_SESSION))
{   
    session_cache_expire (21900);
    $cache_expire = session_cache_expire();  
    session_start();
}
</code></pre>

<p>How can i check session redirect ?</p>

<pre><code>f(!isset($_SESSION['a'])){
    redirce to a
}

f(!isset($_SESSION['b'])){
    redirce to b
}
</code></pre>

<p>Best Regards</p>
