Re[2]: [phplib] problems with relogin!! From: Thomas CARRIE (Thomas.Carrie <email protected>)
Date: 10/09/00

I also have strange problems when I relog under a different login :

- Authentification fails when I submit for the first time my new login,
when I try to submit my new login again, it works !

- Later, I am logged under this new login, so I try to create another new login
then I received an error message, so I try again, I still get an error message
but the login is created !

I 'm sure that I'm not the first on these problems, could anyone tell me
if the relogin problems are patched or can be escaped.

______________________________ Reply Separator _________________________________

matt <email protected>
06/10/2000 10:53:00

 To: dominic.paschke <email protected> <email protected>
phplib <email protected> <email protected>
 cc: (bcc: Thomas CARRIE/marc-otc/fr/socgen)
        Return Receipt: No
        Importance: Normal
        

SUBJECT: RE: [phplib] problems with relogin!!

Hi

I had this problem last week. Although I posted a question to this list I
din't get any replies.

Anyway, what I got it down to was that as the loginform posts to itself with
again=yes appended to the url this causes the problem. To try it when you
have submitted the form remeove again=yes from the url and reload the page,
login again and it should let you in.

At the moment I only have one page where I need default auth so I did a
quick fix, so I would be interested to know if there is a full solution to
this.

If I get one in the meantime, I'll let you know.

M@

> -----Original Message-----
> From: dominic.paschke <email protected> [mailto:dominic.paschke <email protected>]
> Sent: Friday, October 06, 2000 09:31
> To: phplib <email protected>
> Subject: [phplib] problems with relogin!!
>
>
>
> Hi folks!
>
> On my site I need partly default-authentication. When I
> load this page everything works fin, but when I try to
> relogin under a different user, I get the message:
> password or username are invalid!!
> But I know, that they are valid, because without this
> default-authentication I can login!!! I hope anybody
> can help me!
>
> Thanxx in advance,
>
> Dominic
>
> <?php
>
> include("prepend.php3");
>
> page_open(array("sess" =>"My_Session",
> "auth" =>"My_Auth",
> "perm" =>"My_Perm"));
> $auth->login_if($again);
>
> if ($auth->auth["uid"] == "nobody"):
> ?>
>
> ----- HTML-Code
>
> <p><a href="<?php $sess->purl("$PHP_SELF?again=yes") ?>">Login</a>
> to closed area...</p>
> <?php endif ?>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>