Jump to content

Changes not Appearing


Warptweet

Recommended Posts

Hi there,

 

When a user logs into my website http://www.uploadpoints.com, the navigation is set to show a different list of urls.

However, when they log in, (at least for me), they need to press the refresh button in order to see the changes.

 

I tried deleting the Cache using some snippets from other places, but it didn't work.

 

Header("Cache-control: private, no-cache");
Header("Expires: Mon, 26 Jun 1997 05:00:00 GMT");
Header("Pragma: no-cache");

 

How can I delete the cache or use some other method to make the navigation change on-time?

Link to comment
https://forums.phpfreaks.com/topic/109287-changes-not-appearing/
Share on other sites

The way I've always done that is just using an if statement on the level of the user... i.e. if($_SESSION['level'] == 1) {echo '<a href="theprivatelinks">';} or if($_SESSION['level'] == 2) {echo '<a href="thepubliclinks">';} ... don't know if this helps or not, but dynamic pages shouldn't suffer from caching problems, at least I've never had that problem...

 

Unless that is of course unless the sessions are not being destroyed prior to changes being made...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.