cosmocode / dokuwiki-plugin-farmer

Completely manages a DokuWiki farm setup
https://www.dokuwiki.org/plugin:farmer
GNU General Public License v2.0
11 stars 6 forks source link

Remember me in farm setup does not remember login session #78

Open DumplingIsNice opened 2 years ago

DumplingIsNice commented 2 years ago

Just realised this should be a bug report. Copied from dokuwiki forum.

Setup: cpanel. /farm and /barn under domain document root. A .htaccess in the document root redirects domains for farm and animals to /farm.

The Symptom: Chose to remember login information on farm and animals. Noticed that opening new instances of the farm causes the login session on the farm to reset (logged out). Animals are unaffected. User login (Auth only) is config to be inherited.

Testing with another wiki on stick revealed the opposite effect. Using !bang access to animals on new browser/tab instances causes the animal site to reset the login session.

Returning to the server farm setup. Using !bang notation to access animals in the barn reveals the same symptom as the wiki on stick test. However, when accessing with subdomain, the phenomenon does not occur and login session is remembered.

The Problem: Without understanding of dokuwiki internals and the farmer plugin, I believed it to be some intermediate bug in !bang redirection. This I cannot fix. Server setup displaying similar but opposite symptoms suggested that it was a server setup issue.

The Diagnosis: Donno. I donno why.

The Solution: Transferred farm back into document root (and removed redirection to /farm folder). Without the redirection to a deeper directory, the issue is solved. I'm not using !bang on the server anyway so it doesn't matter to me.

DumplingIsNice commented 2 years ago

This might be related to #77 , but

Where "!" is replaced with "%21" on some apps and the encoding destroys the cookie for the "Remember me" function.

Was not observed in this case.