PHP Page not refreshing - retrieving from the cache
Posted: Sat Mar 27, 2004 6:29 am
I have some php pages - all of them have a line print(include("menu.php")); which shows the menu. The menu is dynamic.
menu.php
========
When we enter the site at first, it'll be login cell. After loging in, the logout cell shows.
But unfortunately the menu is loaded only once for each page which it looks into the cache to retieve the menu.php.
If I refresh the page the correct menu items get displayed.
My sessions etc are working OK.
I just need to get this fixed. (Perhaps an automatic refresh ? But that'll load all the images all over again.)
Thanks
menu.php
========
Code: Select all
<?php
$strMenu='some table';
if(isset($PHPSESSID))
$strMenu.='<td>logout</td>';
else
$strMenu.='<td>login</td>';
return $strMenu;
?>But unfortunately the menu is loaded only once for each page which it looks into the cache to retieve the menu.php.
If I refresh the page the correct menu items get displayed.
My sessions etc are working OK.
I just need to get this fixed. (Perhaps an automatic refresh ? But that'll load all the images all over again.)
Thanks