[phplib] relogin From: Michael D. Eschner (mde <email protected>)
Date: 08/17/00

I need for testing many users with different permissions. I have written
the following code for relogin as another user. I can login, but if I
try to relogin I get the message "Either your username or your password
are invalid" - they aren't invalid - form the loginform.ihtml.

Any ideas?

mde

page_open(array("sess" => "Egti_Session", "auth" => "Egti_Auth", "perm"
=> "Egti_Perm", "user" => "Egti_User"));
$auth->login_if($again); // relogin, if this was requested...
?>
<html>
<head>
<title>Development</title>
................
<h1>Links zu Projekten</h1>
<?
printf("Username: %s<br>\n", $auth->auth["uname"]);
printf("Zugriffsrechte: %s<br>\n", $auth->auth["perm"]);
?>
<br>
  <!-- The again=yes triggers the login, see $auth->login_if()
above... -->
<a href="<?php $sess->purl("index.php3?again=yes")?>">Relogin</a>.<br>
.........

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