I'm having a weird issue in a development machine and with firefox (not seamonkey [firefox based], not opera, nor chrome)
My site's login.erl checks authenticates and stores wf:user(User), right? [I double check with ?PRINT]
the next line redirects to perms:home()
And of course, perms:home() has to use wf:user() to know what is the home page of this user, BUT wf:user()
IS RETURNING undefined
I'm accessing the page with localhost:8000/ (this fails)
BUT WHEN I ACCESS
127.0.0.1:8000 ALL IS FINE.
/etc/hosts contains this lines:
127.0.0.1 localhost
This setup has worked me for a long time and this issue has just revealed today. I was using firefox 45 and just for checking
I downloaded firefox 50 (still failing)
Weird is that I'm getting seemingly random fails and correct attempts.
For example, just right now, typed (in a 4 seconds lapse)
1 attempt: wf:user() returns undefined (get redirected to login again)
2 attemp: undefined
3 attemp: User (correct :(, why why why)
... still logged in, I click some of the available links in the "home page" (those also depend on wf:user())
... and again, random clicking will take me again to login (wf:user() randomly returning undefined)
I did a repository verification, a make clean, a make again, rebooted machine :(
and just when accessing with Firefox through the "localhost" name I get this weird behaviour.
Btw, I also have another not-localhost name pointing to 127.0.0.1 and it works just fine.