[pmwiki-users] authuser / Setting the Author Automatically - all blank

H. Fox haganfox at users.sourceforge.net
Tue Feb 7 01:55:48 CST 2006


On 2/7/06, Patrick Ogay <lists at basel-inside.ch> wrote:
> Hello!
>
> I use authuser and with this installation, .htpasswd  authentification
> works  perfectly!
> (I really tried it again and again and it never got it to work  with the
> other installations)
>
> Now I have a problem to set the author automatically.
[...]
>     if (@$_SESSION['authid'] && !$_COOKIE['author']) {
>        $Author = $_SESSION['authid'];
>        setcookie('author',$Author,0,'/');
>     }

Try

    if (@$_SESSION['authid'] && !$_COOKIE['author']) {
      $Author = $_SESSION['authid']['0'];
      setcookie('author',$Author,0,'/');
   }

$_SESSION['authid'] has been recently changed to an array...

Hagan




More information about the pmwiki-users mailing list