[pmwiki-users] authuser

Hans design at flutesong.fsnet.co.uk
Tue Jun 21 14:34:58 CDT 2005


Tuesday, June 21, 2005, 8:22:02 PM, Hans wrote:
> Re: setting $Author when using authentication prompt:

no need for the first global= $Author;
hack should be:

function AuthenticateUser($authid) {
  $GLOBALS['AuthId'] = $authid;
  @session_start();
  $_SESSION['authid'] = $authid;
  $GLOBALS['Author'] = $authid;
  setcookie('author',$Author,0,'/');
}


Best, 
~Hans                           




More information about the pmwiki-users mailing list