Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 3 Facebook Login Cache
#1

Hi

Since I am working with CI3 I noticed one weird situation with Facebook auth Login. this is the case:

If I try to login using facebook, and accept the app in facebook, I receive the information from facebook. everything is ok.

If I log with facebook, and not allow the app at first, I am redirected to a page where I show an error and ask the user to try again. If the user click the button the facebook shows again the app request. Even if the user accepts, for some reason I dont understand, the CI seems to show the error from cache.

In both cases, user accecpt the app or don't, facebook redirects back to my site at:

http://mywonderfullsite.com/fblogin/redi...009aaa#_=_

Do Codeigniter cache pages automatically? how can I avoid it?
Reply
#2

It looks like it is the browser that is caching the page. Any tip to prevent browser from caching dynamic pages?
Reply
#3

PHP Code:
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0"false);
header("Pragma: no-cache"); 
from http://stackoverflow.com/questions/13640...r-php-site

So, if you stick that into your Controller before you start output for the page in question, the browser should not cache it.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB