my modest php application is working fine (Vista home, Apache 2.2.9, php5.2.6, MySQL5) with the exception after logging-in successfully to my php application I try and click another .php page within my application I get the error "you need to be logged in to use this feature. please login here[link]"
The code that is triggering the error is listed below. Presumably I have overlooked a "session ID" or "cookie" setting somewhere in my Apache 2.2.9 setup or my php5.2.6 settings.
The "login.php" referred to below has standard username and pw capture and post settings..nothing untoward that I can see..
Any ideas anyone? Thanks very much..
Conor
Code: Select all
<?php
if (!isset($_SESSION['user']))
die('you need to be logged in to use this feature.<br />please login <a href="login.php">here</a>');
?>