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:  15
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 719, on June 06, 2008 10:16 AM
Total Registered Members: 77571 Total Logged-in Users: 20
Total Topics: 101562 Total Anonymous Users: 2
Total Replies: 544410 Total Guests: 183
Total Posts: 645972    
Members ( View Memberlist )
Newest Members:  Idril616tonybernardcarterstarksColeJLinskitnealsemperjrawhallshiusbozzlynobluff