[pmwiki-users] using authuser in wiki farms

H. Fox haganfox at users.sourceforge.net
Thu Mar 9 13:50:09 CST 2006


On 3/9/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> I don't have an entirely satisfactory answer for this at the moment.
> One thing that might work would be to give every field a unique
> session name -- at the top of each field's local/config.php
> file, put a line like:
>
>     session_name('FieldID');
>
> where FieldID is a unique and descriptive name (letters + numbers only)
> for each field.  This should tell PHP to keep the sessions separate for
> each field.
>
> It might be nice to have PmWiki be able to generate unique field
> IDs on its own, but I don't have a really good way to do that yet.
> It probably needs to be based on the current directory somehow.

In your field.php you can use

   $CookiePrefix = substr($tmp = md5(__FILE__), 0, 5).'_';

It's not "automatic", but is it reliable?

Hagan




More information about the pmwiki-users mailing list