[pmwiki-users] Getting AuthId in a recipe function
Patrick R. Michaud
pmichaud at pobox.com
Wed Aug 30 21:40:10 CDT 2006
On Wed, Aug 30, 2006 at 10:27:35PM -0400, The Editor wrote:
> In all the thrilling emails on the list lately with such great new
> ideas, I did have one little question that seems to have gone
> unnoticed. Here is a repost.
> > Is there somethig I need to set to global in order to make this line work?
> > $v = $g . "." . $_SESSION['authid'];
> > It's in a recipe.
> > I also tried
> > $v = $g . "." . $AuthId;
> The recipe is loaded after AuthUser. I've tried starting a session.
> Various configurations for this. But can't seem to figure out how to
> get AuthId in a recipe. All it returns is "Array".
$_SESSION['authid'] is an array -- it's an array of all of the
ids that the visitor has authenticated.
But $AuthId ought to work if someone has authenticated -- I'm not sure
why it's not working. Of course, if nobody has authenticated, then
$AuthId is blank.
More information about the pmwiki-users