Hi all,
I've got this problem where I'm using one "include header" for my website. It has in it the navigation and because my site is spread out in and out of folders I need to use absolute links to connect all the various pages.
i.e
<a href="<?php echo $site_url_admin;
?>staff_home.php">Home</a>
<a href="<?php echo $site_url_admin; ?>about/index.php">About</a>
The problem is because I'm using a login system;
session_start();
if (!isset($_SESSION['user']))
{
die ("Access Denied!");
}
if (isset($_SESSION['user'])) { ?>
when I click on the absolute link, the SESSION finishes and Access is Denied!.
I have reverted back to relative links and all works fine then. However I would need at least 20 separate navigation bars for everything to link up.
The most weird thing of all is if I LOGOUT then login again, everything works fine with ABSOLUTE links, go figure!
Any help would be much appreciated, thanks....