Part of the EllisLab Network
   
 
FreakAuth isValidUser( ) problem
Posted: 12 July 2007 01: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 07:39 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
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 02: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
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 120453 Total Logged-in Users: 37
Total Topics: 126533 Total Anonymous Users: 4
Total Replies: 665354 Total Guests: 335
Total Posts: 791887    
Members ( View Memberlist )