Page not loading properly, need to hit refresh to see current page.

I believe this has to do with a common controller I created. Whenever it's called the page just loads with the same data. But when I hit the refresh button the page changes properly.

This happens with the menu items (categories) and login which are both in the common controller.

You need to login for the categories to populate. (if you have problems logging in just go back to the site defined and click refresh.
login: asco/asco123

The asco controller builds the page. Common performs login/logout/category change.

Below is the category code from the common controller.
function cat()
        $redir = $this->session->userdata('pod_path'); //asco
        // UNSET Video so next refresh has image not video

Thanks -Mark

how about add 'refresh' flag in redirect function?
redirect($redir, 'refresh');

Thanks, I tried that. At home it works fine, at work it doesn't. I think it's because the firewall may cache the page.

I always redirect to the original page.

Link executed on page: (set some session variables)
Which redirects back to (display the page based on the new session variable)

Any problem with doing this, most of my site is built this way. That is, it always redirects back to

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.