CodeIgniter Forums

Full Version: FreakAuth isValidUser( ) problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I have installed FreakAuth on my website and everything appears to be working. I use the isValidUser method to print a different menu for users that are logged in. This happens on every page that is displayed.

Whenever I login and navigate to any page within the website three times, the isValidUser method is no longer returning true and therefore shows the default menu.

My menu code looks like this:

    <li>&lt;?=anchor('home', 'Home')?&gt;</li>
    &lt;?php if (isValidUser()) { ?&gt;
        <li>&lt;?=anchor($this->config->item('FAL_changePassword_uri'), 'Manage')?&gt;</li>
    &lt;?php } else { ?&gt;
        <li>&lt;?=anchor($this->config->item('FAL_register_uri'), 'Register')?&gt;</li>
    &lt;?php } ?&gt;

El Forum

Hi, I did have this similar problem at the very beginning. I have no answer, I reinstalled my app starting with FAL and everything was fine.

This session being lost after several clicks is still a mystery.

El Forum

I was having the same problem here. I loaded FA into an existing app, and everytime I would log in, after exactly 3 clicks / 3 presses / 3 navigation / 3 buttons (being verbose for search in case others have same issue).

It seems like the problem was autoloading. I deleted cookie helper, and session library from autoload.php and it cleared up the problem.