Part of the EllisLab Network
   
 
FreakAuth isValidUser( ) problem
Posted: 12 July 2007 02:32 PM   [ Ignore ]  
Summer Student
Total Posts:  1
Joined  07-12-2007

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:

<ul>
    <
li><?=anchor('home''Home')?></li>
    
<?php if (isValidUser()) { ?>
        
<li><?=anchor($this->config->item('FAL_changePassword_uri'), 'Manage')?></li>
    
<?php } else { ?>
        
<li><?=anchor($this->config->item('FAL_register_uri'), 'Register')?></li>
    
<?php } ?>
</ul
Profile
 
 
Posted: 02 September 2007 08:39 AM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  297
Joined  02-21-2007

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.

Profile
 
 
Posted: 06 September 2007 03:52 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  22
Joined  07-25-2007

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.

HTH

Profile