i cannot access my link on my php page
<p>i'm working on a <code>view_category.php</code> page for my forum but i am having a small problem my link is not working i'm logging in but the page is showing that im not logged in its treating me like im a guest just viewing the forum hence i can not create a topic on the forum,my create_topic.php link can not be accessed.</p>

<p>here is my code below</p>

<pre><code>// Assign local variables
$cid = $_GET['cid'];

// Check to see if the person accessing this page is logged in
if (isset($_SESSION['uid'])) {
    $logged = " | &lt;a href='create_topic.php?cid=".$cid."'&gt;Click Here To Create A Topic&lt;/a&gt;";
} else {
    $logged = " | Please log in to create topics in this forum.";
}
</code></pre>

<p>why is this happening??</p>

<p>i just included</p>

<pre><code>var_dump($_SESSION); 
</code></pre>

<p>and this the output</p>

<pre><code> array(2) { ["username"]=&gt; string(7) "mura" ["password"]=&gt; string(4) "1234" }
</code></pre>
