Page 1 of 1

FEU Signout issues [SOLVED]

Posted: Mon Feb 18, 2013 8:33 am
by wakewatcher
I'm seeing some inconsistent behaviour signing out from FEU. Most of the time I sign out I just stay on the same page. Once every dozen times when I sign out I get sent to the Login page. (This is what I would expect.) However I initially thought that I wasn't actually still logged in because when I go to another menu tab (Ncleanblue) my protected content tab disappears as expected. However oddly when I click on the login tab the protected content tab reappears. Now if I click around from tab to tab for a bit of time (without re-clicking signout) something eventually times out and the login tab again displays a login screen. I thought I might need to force a page redirect using the builtin authentication in the FEU settings but I couldn't seem to figure that out either. I suppose from a practical stand point this is only a real issue if multiple users are sharing a browser as it appears that you can't signed out immediately. Of course for testing that is what I'm trying to do. Signout and sign back in as someone else. Anyway thought I'd share my experience.

Re: FEU Signout issues

Posted: Mon Feb 18, 2013 7:52 pm
by wakewatcher
I'm also seeing a variation on this. In some instances when I log in it does not take me to the 'change settings' and 'signout' page but returns/stays on the login page. Thinking for some reason I'm not logged in (and it doesn't look like it because my protected content tab doesn't appear) and I try to re-log in I get the message "This user is already logged in" and there is no 'signout' link.

I thought a clever way to work around this was to add a page called logout with the content set to: {FrontEndUsers form="logout"}. However that blew up as I get the message from chrome (This page has redirect loop Error 310 ERR_TOO_MANY_REDIRECTS)

I hesitate to do this but could I simple delete the user from the cms_module_feusers_loggedin table or are there other tables that are impacted when a frontenduser logs out?

Re: FEU Signout issues

Posted: Mon Feb 18, 2013 7:58 pm
by Dr.CSS
Did you set a redirect page in FEU admin, maybe more than 1..?

Re: FEU Signout issues

Posted: Mon Feb 18, 2013 8:09 pm
by wakewatcher
No all of those fields in the 'builtin authentication' are blank. I'm trying something else and apparently I know almost enough to be dangerous. I thought making my login page something like:

Code: Select all

{if !$ccuser->loggedin()}
  {FrontEndUser}
{else}
  {FrontEndUser form='logout'}
{/if}
would be a work around but it causes a smarty compiler error. Maybe things like that aren't allowed in pages.

Re: FEU Signout issues

Posted: Mon Feb 18, 2013 8:51 pm
by wakewatcher
The smarty error was the TinyMCE html substitution for " -> " but when I fixed that it still didn't work. In fact tried just a simple page with {FrontEndUsers form="logout"} and the page renders blank. Sigh...

Re: FEU Signout issues

Posted: Mon Feb 18, 2013 9:15 pm
by wakewatcher
I finally did a 'soft reset' and deleted the users from the feu and registering them. That fixed this last problem of FEU claiming I was already logged in but not showing me protected content or showing me a log out link. BUT I still have the problem that when I do log out it stays on the log out form and doesn't product the log in form until something times out.

This could be a problem for people sharing the same computer trying to log on one after the other. I.e. I log out but the log in form does not appear so when my wife sits down to log in there's no form to log in with until it decides it wants to show you one.

Re: FEU Signout issues

Posted: Thu Feb 21, 2013 4:06 pm
by wakewatcher
Fixed in this case by enabling Pretty Urls.