While working with phpwiki, I have run into a problem which has frustrated me
repeatedly for quite some time now. So I would like to open my case for review
by the experts.
Context:
A (considerably customized) wiki with a single administrator logon, no other
user accounts. Administrator gets password from config file.
Symptoms:
Administrator logs on, at which point user is authenticated and signed.
However, the logon does not stick, and the next page which is loaded is back to
only being signed, not authenticated.
Analysis:
In my searching, I believe I have nailed it down to the following:
In request.php
in class Request_SessionVars
it attempts to save an object of type AdminUser into the session variable
'wikiuser'. However it is not retrievable on a reload of the page.
However, if I slightly modify the code so that instead of saving an AdminUser
object to the session variable wikiuser, it saves the UserPreferences object of
that AdminUser object, it is able to load the UserPreferences object back in.
Additionally, when tweaked to save the print_r of the AdminUser object (so
saving a long string to session var) it works correctly.
Only when attempting to save the AdminUser object does it not work.
My guess is that the AdminUser object cannot save because it seems to contain
references to database resources..? But I have tried modifying the AdminUser
object to not include these references with no result.
|