[pmwiki-users] authuser

Patrick R. Michaud pmichaud at pobox.com
Tue Jun 21 15:46:44 CDT 2005


On Tue, Jun 21, 2005 at 01:31:43PM -0700, H. Fox wrote:
> > If someone wants to set the author
> > based on authentication then
> >     # ...set passwords and authuser settings...
> >     include_once('scripts/authuser.php');
> >     if ($AuthId) {
> >       $Author = $AuthId;
> >       setcookie('author',$Author,0,'/');
> >     }
> > will do it.
> 
> This does set the $Author, but the user can change it.  I had
> discovered this alternative method.
> if (@$_SESSION['authid']) $Author=$_SESSION['authid'];

Niiiiiice.

Pm



More information about the pmwiki-users mailing list