I haven't experimented with this much, but I noticed that the admin permission that I specified in my config file was lost if I click the remember box. --RandyB August 31, 2014, at 01:25 PM
Nothing in the recipe instructs PmWiki to forget permissions (unless a user logs out, or logs in without selecting the "Remember me" box). It only sets a path to the directory of the session files, and a cookie to recognize visitors who have asked to be remembered. A browser may be configured to forget permanent cookies on exit, either by the user via the preferences, or by using "Private browsing mode", or by an extension like "Self-Destructung cookies", or by a filtering proxy like Privoxy. Server-side, the inability of pmwiki to send a cookie to the browser may be caused by a character (space or Byte order mark) before any opening "<?php" or after any closing "?>" PHP tags. That's why we recommend to not include the closing "?>" tag in all cookbook recipes and local customization files. --Petko September 01, 2014, at 10:25 AM
FWIW, I noticed on a recent project that the shared hosting server was configured to automatically delete session files, even in the custom directory, probably via some cron script, disregarding of the built-in PHP garbage collection which we had configured for a longer period. When session files are deleted, PmWiki cannot recognize the visitor. For such servers this recipe here will not be of much help. --Petko September 01, 2014, at 10:25 AM
Thanks, that's very useful information about cookies that I'll have to digest (the information, not the cookies).
By including PersistentLogin.php before including authuser.php, I solved the problem. -- RandyB September 01, 2014, at 02:17 PM
Indeed, PersistentLogin must be included as soon as possible in farmconfig.php if it exists, or in config.php - near the top of the file below the "<?php" line. --Petko September 01, 2014, at 02:58 PM